/* ******************************************************************** */
/* *********** Responsive Design paramètres de la bannière ************ */
/* ******************************************************************** */
/* Top-banner layout: three rows
   - .top-row : logo (left), phone (center/left), burger (right)
   - .middle-row : full-width tagline
   - .bottom-row : actions (search + buttons + cart)
*/
/* ******************************************************************** */
.top-banner .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-banner .top-row .logo-img {
  height: 70px;
}

.top-banner .top-row .tagcontact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.top-banner .top-row .mobile-menu-toggle {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  font-size: 22px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  color: #111111;
  display: none; /* hidden by default, will be shown under 768px */
}

.top-banner .middle-row .tagline {
  width: 100%;
  text-align: center;
  margin: 12px 0;
}

.top-banner .middle-row .tagline h1 {
  font-size: 39px;
  margin: 0;
  line-height: 1.1;
}

.top-banner .bottom-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.top-banner .bottom-row .header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Forcer les boutons Compte / Contact / Devis / Panier sur une seule ligne */
.top-banner .bottom-row .header-actions {
  flex-wrap: nowrap;
  flex-direction: row;
}

.top-banner .bottom-row .header-actions .account-btn,
.top-banner .bottom-row .header-actions .cart {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.top-banner .bottom-row .header-actions .search-bar {
  margin-right: 8px;
  flex: 0 1 320px; /* laisser la recherche occuper de l'espace sans forcer le wrapping */
}



/* ********************************************************************************* */
/* ******************* RESPONSIVE DESIGN supérieur 1600 px ************************* */
/* ********************************************************************************* */

/* Desktop XL (>=1600px) */
@media (min-width: 1600px) {
  .container { max-width: 1560px; }
  .tagline h1 { font-size: 64px; }
  .main-nav { gap: 48px; }
  .nav-btn { font-size: 20px; padding: 8px 18px; }
}

/* ********************************************************************************* */
/* ******************** RESPONSIVE DESIGN 1440px - 1599px ************************** */
/* ********************************************************************************* */

/* Desktop L (>=1440px) */
@media (min-width: 1440px) and (max-width: 1599px) {
  .container { max-width: 1360px; }
  .tagline h1 { font-size: 56px; }
  .nav-btn { font-size: 18px; padding: 6px 16px; }
}

/* ********************************************************************************* */
/* ******************** RESPONSIVE DESIGN 1280px - 1439px ************************** */
/* ********************************************************************************* */

/* Desktop M (>=1280px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container { max-width: 1200px; }
  .tagline h1 { font-size: 48px; }
  .main-nav { gap: 36px; }
}

/* ********************************************************************************* */
/* ********************** RESPONSIVE DESIGN 1200px mini **************************** */
/* ********************************************************************************* */

@media (min-width: 1200px) {
  .top-banner .middle-row .tagline h1 { 
    font-size: 40px; 
  }
  .top-banner .top-row .logo-img { 
    height: 90px; 
  }

/* Desktop large (1200px et plus) */

  .container {
    max-width: 1480px;
  }

  .tagline h1 {
    font-size: 50px;
  }

  .main-nav {
    gap: 40px;
  }

  .nav-btn {
    min-width: 160px;
    padding: 5px 15px;
    font-size: 18px;
  }

  .dropdown-menu {
    min-width: 250px;
  }
  /* Large screens: rendre le container du top-banner élastique (plein écran avec petites marges) */
  .top-banner > .container {
      max-width: none !important;
      width: calc(100% - 40px) !important; /* laisse 20px de marge de chaque côté */
      margin: 0 auto !important;
      padding-left: 20px !important;
      padding-right: 20px !important;
      box-sizing: border-box;
    }
}


/* ********************************************************************************* */
/* ************************ RESPONSIVE DESIGN max 1024px *************************** */
/* ********************************************************************************* */

/* Large tablet / small desktop breakpoint (<=1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .tagline h1 { font-size: 32px; }
  .main-nav { gap: 24px; }
  .nav-btn { min-width: 140px; }
}

/* ********************************************************************************* */
/* ********************* RESPONSIVE DESIGN 921px - 980px *************************** */
/* ********************************************************************************* */

/* ZFold / narrow landscape (980px) */
@media (max-width: 980px) and (min-width: 921px) {
  /* Slightly reduce paddings to avoid wrapping on fold devices */
  .nav-btn { padding: 6px 10px; font-size: 15px; }
  .tagline h1 { font-size: 30px; }
}

/* ********************************************************************************* */
/* ******************** RESPONSIVE DESIGN 820px - 1024px ************************** */
/* ********************************************************************************* */

/* Tablet large: 820 - 1024 */
@media (min-width: 820px) and (max-width: 1024px) {
  .container { max-width: 900px; padding: 0 18px; }
  .tagline h1 { font-size: 28px; }
  .main-nav { gap: 18px; }
  .vignette-index { width: 48%; display: inline-block; vertical-align: top; }
}

/* Ensure mobile menu is always hidden on wider screens (>=821px) */
@media (min-width: 821px) {
  #mobileMenu,
  .mobile-menu {
    display: none !important;
  }
}

/* ********************************************************************************* */
/* *********************** RESPONSIVE DESIGN 820px max ***************************** */
/* ********************************************************************************* */

/* Gestion du scroll responsive */
@media (max-width: 820px) {
  /* Afficher le burger seulement sur petits écrans */
  .top-banner .top-row .mobile-menu-toggle {
    display: inline-flex;
  }
  .header.scrolled-down .navigation-banner {
    height: 50px;
  }

  .header.scrolled-down .nav-btn {
    padding: 8px 15px;
    font-size: 12px;
    min-width: 100px;
  }

  /* Breadcrumb responsive */
  .breadcrumb-btn {
    font-size: 10px;
    padding: 6px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  
  .main-nav {
    gap: 15px;
  }

/* Tablettes (820px et moins) */
  .container {
    padding: 0 15px;
  }

  /* Bandeau principal responsive */
  .top-banner {
    height: auto;
    min-height: 122px;
    padding: 15px 0;
  }

  .top-banner-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .tagline h1 {
    font-size: 1.5rem;
  }

  .header-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }

  .search-bar {
    width: 100%;
    max-width: 300px;
  }

  .search-input {
    min-width: auto;
    flex: 1;
  }

  /* Navigation responsive */
  .navigation-banner {
    height: auto;
    min-height: 100px;
    padding: 15px 0;
  }

  .main-nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  /* Cacher la navigation complète par défaut sur mobile (on utilise le menu burger) */
  .main-nav {
    display: none;
  }

  /* Cacher les actions compactes (elles sont dans le menu mobile) */
  .nav-actions-compact {
    display: none;
  }

  .nav-btn {
    min-width: 200px;
  }

  /* Menus déroulants sur mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item.active .dropdown-menu {
    max-height: 300px;
  }
  

  .dropdown-menu::before {
    display: none;
  }

/* Menu mobile toggle (optionnel pour version avancée) */

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #f1f1f1;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
  }

  /* Cacher la barre de recherche sur petits écrans */
  .search-bar {
    display: none;
  }

  body.mobile-menu-open .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; /* collé en haut de la fenêtre */
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    background: #ffffff;
    padding: 24px 20px;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    z-index: 20000; /* au-dessus du header */
  }

  /* Espace ajouté au bas du menu ouvert pour éviter que les derniers
     éléments soient cachés derrière les liens d'actions (Compte/Contact/Devis).
     Valeur modérée pour ne pas casser le design, peut être ajustée. */
  body.mobile-menu-open .mobile-menu {
    height: 1200px;
  }

  /* Empêcher le débordement horizontal lors de l'ouverture du menu */
  body.mobile-menu-open {
    overflow-x: hidden;
  }

  .mobile-menu {
    display: none;
  }
  /* S'assurer que le toggle est visible et contrasté */
  .mobile-menu-toggle i {
    color: #111111;
  }

  /* Styles des liens du menu mobile */
  .mobile-menu-link {
    display: block;
    padding: 12px 10px;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
  }

  /* Palette harmonisée pour le menu mobile */
  .mobile-menu {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%); /* léger ton chaud */
    color: #0f172a;
  }

  .mobile-group-title {
    background: transparent;
    color: #0b1220;
    padding: 12px 10px;
  }

  .mobile-group-title .arrow {
    color: #d97706; /* accent orange */
  }

  .mobile-menu-link {
    color: #0b1220;
  }

  .mobile-menu-link:hover {
    background: #fff7ed; /* hover chaude */
    color: #92400e;
  }

  .mobile-menu-separator {
    background: #f1e9df; /* clair, harmonisé */
  }

  /* Titres de groupes sur fond légèrement contrasté */
  .mobile-group + .mobile-group {
    margin-top: 6px;
  }

  .mobile-group.open .mobile-group-title {
    background: #fff9f2;
  }

  .mobile-menu-link:hover {
    background: #f0f0f0;
  }

  .mobile-menu-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
  }

  /* Garder toujours visibles les liens d'actions en bas du menu mobile
     en les rendant 'sticky' empilés (sans modifier le HTML). */
  .mobile-menu .mobile-menu-separator + .mobile-menu-link,
  .mobile-menu .mobile-menu-separator + .mobile-menu-link + .mobile-menu-link,
  .mobile-menu .mobile-menu-separator + .mobile-menu-link + .mobile-menu-link + .mobile-menu-link {
    display: block;
    width: 100%;
    background: #ffffff;
    z-index: 20001;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.04);
  }

  /* Empiler les trois liens depuis le bas (le dernier lien sera collé en bas). */
  .mobile-menu .mobile-menu-separator + .mobile-menu-link {
    position: sticky;
    bottom: 96px; /* espace pour 3 liens empilés (48px chacun approximativement) */
  }
  .mobile-menu .mobile-menu-separator + .mobile-menu-link + .mobile-menu-link {
    position: sticky;
    bottom: 48px;
  }
  .mobile-menu .mobile-menu-separator + .mobile-menu-link + .mobile-menu-link + .mobile-menu-link {
    position: sticky;
    bottom: 0;
  }

  /* Groupes déroulants dans le menu mobile */
  .mobile-group {
    border-radius: 6px;
    overflow: hidden;
  }

  .mobile-group-title {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 10px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .mobile-group-title .arrow {
    transition: transform 0.18s ease;
    font-size: 14px;
    margin-left: 8px;
  }

  .mobile-group.open .mobile-group-title .arrow {
    transform: rotate(180deg);
  }

  .mobile-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 6px;
  }

  /* Quand un groupe est ouvert, montrer tous les liens et pousser le contenu suivant */
  .mobile-group.open .mobile-group-items {
    max-height: none !important;
    overflow: visible !important;
  }
 

  /* Quand le menu mobile contient un groupe ouvert, permettre au menu
     de s'étendre naturellement (pousser les éléments suivants vers le bas) */
  .mobile-menu.expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 20000 !important;
  }

  /* Forcer l'en-tête en position fixe sur mobile et compenser le padding */
  /* Fixer la barre de navigation sauf la variante compacte */
  .header.scrolled-down .navigation-banner:not(.nav-compact) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 13001;
  }

  /* La variante compacte ne doit pas devenir fixe sur mobile */
  .header.scrolled-down .navigation-banner.nav-compact {
    position: static !important;
    display: none !important;
  }

  /* body.nav-fixed padding is now handled dynamically via JS to match top-banner height */
  body.nav-fixed {
    padding-top: 0 !important;
  }

  /* Les sous-menus s'ouvrent à la demande (via la classe .open) - accordion géré par JS */

  .mobile-group-items .mobile-menu-link {
    padding-left: 8px;
    font-size: 16px;
  }

  .main-nav.mobile-hidden {
    display: none;
  }

  .main-nav.mobile-visible {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
  }

  /* Formulaires responsive */
  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .devis-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .devis-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .upload-dropzone {
    padding: 30px 15px;
  }

  .upload-icon {
    font-size: 36px;
  }

  .images-preview {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}




/* ********************************************************************************* */
/* ********************* RESPONSIVE DESIGN 768px - 819px *************************** */
/* ********************************************************************************* */

/* Tablet small: 768 - 820 */
@media (min-width: 768px) and (max-width: 819px) {
  .container { padding: 0 16px; }
  .tagline h1 { font-size: 26px; }
  .vignette-index { width: 48%; display: inline-block; vertical-align: top; }
}

/* ********************************************************************************* */
/* ******************** RESPONSIVE DESIGN Mobile max 480px ************************* */
/* ********************************************************************************* */

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  .tagline h1 {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 60px;
  }

  .header-actions {
    gap: 10px;
  }

  .search-input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .btn-account,
  .btn-cart {
    padding: 8px 12px;
    font-size: 14px;
  }

  .main-nav {
    gap: 10px;
  }

  .nav-btn {
    min-width: 180px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
  }

  .contact-container,
  .devis-form-section,
  .upload-section {
    padding: 20px;
    margin: 0 10px;
  }

  .contact-form input,
  .contact-form textarea,
  .devis-form input,
  .devis-form textarea {
    padding: 10px 12px;
    font-size: 16px; /* Évite le zoom sur iOS */
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-submit,
  .btn-reset {
    width: 200px;
  }

  .upload-dropzone {
    padding: 20px 10px;
  }

  .upload-dropzone p {
    font-size: 14px;
  }

  .images-preview {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
  }

  .btn-crop,
  .btn-delete {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
/* ajustement de la largeur des bulles */
  .bull {
    width: 100%;
  }
}

/* ********************************************************************************* */
/* ******************** RESPONSIVE DESIGN Mobile max 375px ************************* */
/* ********************************************************************************* */

/* Mobile medium (phone-wide) 390px - inclut iPhone 12 (CSS width 390px) */
@media (max-width: 390px) {

  .tagline h1 { 
    font-size: 1.05rem; 
  }
  .vignette-index { 
    width: 100%; display: block; margin-bottom: 18px; 
  }
  .image-index { 
    width: 100%; height: auto; 
  }
  /* HEADER */
  .middle-row {
    width: 100%;
  }
  .tagcontact {
    width: 190px;
  }

  /* FOOTER */
  html body.nav-fixed footer div.top-banner-content div.tagcontact {
    width: 245px;
  }
  /* page ACCUEIL */
  .title-h1 {
    font-size: 36px;
    line-height: 30px; 
  }
  .ligne {
    flex-direction: column;
  }
  /* Tirages Petit Format */
  .section1, .section2 {
    padding: 0 10px;
  }
  .colonne-1, .colonne-2, .colonne-3, .colonne-4, .colonne-5, .colonne-6 {
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
  }
  .paragraphe {
  width: 100%;
  }
  h1 {
    font-size: 22px;
  }
  .tableau-produits {
    width: 360px;
    margin-left: -2px;
    margin-right: -2px;
  }
  .tableau-header.sans-couleur, .ligne-produit.sans-couleur {
    grid-template-columns: 60px 101px 21px 10px;
  }

  /* Page Papier */
  html body.nav-fixed main .section1 div.ligne {
    flex-direction: row;
  }
  html body main img.centre-div.pose {
    height: 140px;
  }
  html body.nav-fixed main section#ramettes-de-papier.section1 div.tableau-container div.tableau-produits div.tableau-header {
    display: none;
  }
  html body.nav-fixed main section#ramettes-de-papier.section1 div.tableau-container div.tableau-produits div.ligne-produit {
    grid-template-columns: 86px 129px 86px;
    gap: 7px;
  }
  .detail {
    width: 293px;
  }
 

  /* Ajouter vos photos */
  .title-h1 {
	  line-height: 57px;
  }
  .container {
    padding: 0;
  }
  .photo-container {
	grid-template-columns: 1fr !important;
  padding: 0px !important;
  }
  .btn-crop {
    display: none;
  }
  /* Panier */
  .connexion-required {
    width: 315px;
  }

  /************* Table panier responsive: afficher chaque ligne sur 2 lignes sur petits écrans */
  .panier-background {
    padding: 24px 0px;
  }

  .table-panier thead {
    display: none;
  }

  .table-panier,
  .table-panier tbody,
  .table-panier tr,
  .table-panier td {
    width: 100%;
    display: block;
  }

  .table-panier tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .table-panier tbody tr td {
    box-sizing: border-box;
    padding: 6px 0;
  }

  /************* Première ligne : Référence *************/
  .table-panier tbody tr td:nth-child(1) {
    order: 1;
    flex: 0 0 80%;
    font-weight: 600;
  }
  /************* Première ligne : Action supprimer article *************/
  .table-panier tbody tr td:nth-child(7) {
    order: 2;
    flex: 0 0 20%;
    text-align: right;
  }

  /************* Deuxième ligne : Désignation *************/
  .table-panier tbody tr td:nth-child(2) {
    order: 3;
    flex: 0 0 80%;
    color: #666;
  }
  /************* Deuxième ligne : Conditionnement + Quantité *************/
  .table-panier tbody tr td:nth-child(3),
  .table-panier tbody tr td:nth-child(4) {
    order: 4;
    flex: 0 0 10%;
    text-align: center;
  }
  /************* Troisème ligne : Prix Total article *************/
  .table-panier tbody tr td:nth-child(6) {
    order: 4;
    flex: 0 0 100%;
    text-align: right;
    font-weight: 600;
  }

  /************* Masquer les colonnes moins importantes sur petit écran *************/
  .table-panier tbody tr td:nth-child(5) {
    display: none;
  }

  /************* Labels au-dessus des cellules (mobile) *************/
  .table-panier tbody tr td:nth-child(3)::before,
  .table-panier tbody tr td:nth-child(4)::before,
  .table-panier tbody tr td:nth-child(6)::before {
    display: block;
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .table-panier tbody tr td:nth-child(3)::before { content: "CDT"; }
  .table-panier tbody tr td:nth-child(4)::before { content: "QTE"; }
  .table-panier tbody tr td:nth-child(6)::before { content: "Total HT article"; }

  /************* Afficher le label et le prix sur la même ligne pour la colonne Total HT article *************/
  .table-panier tbody tr td:nth-child(6) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .table-panier tbody tr td:nth-child(6)::before {
    display: inline-block;
    margin: 0 8px 0 0;
    font-weight: 600;
  }
  /* Page de connexion */
  .bull2 {
    margin-left: 6%;
    width: 90%;
  }

  
  .connected-as {
    position: absolute;
    top: 250px;
  }
  /* Page Payer par virement bancaire */
  html body main.container div.ligne div.colonne-6 div.ligne {
    display: none;
  }
  .colonne-6 {
    width: 95%;
    padding: 0px;
  }
  /* Récapitulatif du virement bancaire */
  .three-cols {
    flex-direction: column;
    width: 100%;
  }
  html body section.fondAdmin main.container div div.ligne div {
    display: none;
  }
  
  /**************** Mettre en forme le tableau de la page formuaires/virement_submit.php
     sur deux lignes: 1) Réf 40% / Désignation 60%  2) Qté 20% / PU HT 40% / Total HT 40% *************/
  .fondAdmin table {
    width: 100%;
    border-collapse: collapse;
  }

  .fondAdmin table thead {
    display: none;
  }

  .fondAdmin table,
  .fondAdmin table tbody,
  .fondAdmin table tr,
  .fondAdmin table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .fondAdmin table tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
  }

  /* Première ligne: Référence (40%) + Désignation (60%) */
  .fondAdmin table tbody tr td:nth-child(1) {
    order: 1;
    flex: 0 0 40%;
    font-weight: 600;
    padding: 6px 8px;
  }
  .fondAdmin table tbody tr td:nth-child(2) {
    order: 2;
    flex: 0 0 60%;
    color: #666;
    padding: 6px 8px;
  }

  /* Deuxième ligne: Qté (20%), PU HT (40%), Total HT (40%) */
  .fondAdmin table tbody tr td:nth-child(3) {
    order: 3;
    flex: 0 0 20%;
    text-align: center;
    padding: 6px 8px;
  }
  .fondAdmin table tbody tr td:nth-child(4) {
    order: 4;
    flex: 0 0 40%;
    text-align: left;
    padding: 6px 8px;
  }
  .fondAdmin table tbody tr td:nth-child(5) {
    order: 5;
    flex: 0 0 40%;
    text-align: right;
    font-weight: 600;
    padding: 6px 8px;
  }
  /* Page mon compte */
  .account-container .account-content {
    flex-direction: column;
  }
  .account-main {
	padding: 0px !important;
  }
  /* Page voir détail commande */
  .confirmation-container {
    padding: 0px !important;
  }
  html body.nav-fixed main section.section2 div.ligne.centre-div img.ambre2 {
    width: 66px;
    height: 56px;
  }
  html body.nav-fixed main section.section2 div.container {
    margin: 0 !important;
  }
  html body.nav-fixed main section.section2 div.container div.ligne {
    flex-direction: row;
  }
  html body.nav-fixed main section.section2 div.container div.ligne div img {
    width: 30px;
    height: 30px;
  }
  html body.nav-fixed main section.section2 div.container div.ligne div p {
    font-size: 6px;
  }
  .posCouleurCrea {
    margin: 0 20px;
  }
  /* PAGE personnalisation tableau dorure */
  html body.nav-fixed main.cadre div.container div.conteneur-etapes div#contenu-etape-2.etape-contenu.active div div#tableau-personnalisation div div.tableau-produits div.tableau-header {
    display: none;
  }
}
  /* Mise en forme responsive du tableau .items-table (page voir détail commande)
     Téléphone: première ligne Produit 40% / Détails 60%
     Seconde ligne Qté 20% / Prix unitaire 40% / Total 40% */
  @media (max-width: 390px) {
    .confirmation-container .items-table {
      width: 100%;
      border-collapse: collapse;
    }
    .confirmation-container .items-table thead {
      display: none;
    }
    .confirmation-container .items-table,
    .confirmation-container .items-table tbody,
    .confirmation-container .items-table tr,
    .confirmation-container .items-table td {
      display: block;
      width: 100%;
      box-sizing: border-box;
      padding: 0;
    }
    .confirmation-container .items-table tbody tr {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 8px 0;
      border-bottom: 1px solid #eee;
      align-items: center;
    }
    .confirmation-container .items-table tbody tr td {
      padding: 6px 8px;
    }
    .confirmation-container .items-table tbody tr td:nth-child(1) {
      order: 1;
      flex: 0 0 40%;
      font-weight: 600;
    }
    .confirmation-container .items-table tbody tr td:nth-child(2) {
      order: 2;
      flex: 0 0 60%;
      color: #666;
    }
    .confirmation-container .items-table tbody tr td:nth-child(3) {
      order: 3;
      flex: 0 0 20%;
      text-align: center;
    }
    .confirmation-container .items-table tbody tr td:nth-child(4) {
      order: 4;
      flex: 0 0 40%;
      text-align: left;
    }
    .confirmation-container .items-table tbody tr td:nth-child(5) {
      order: 5;
      flex: 0 0 40%;
      text-align: right;
      font-weight: 600;
    }
  }
  /* Page historique des achats */
  /* Tableau historique généré en JS - mise en forme téléphone */
  @media (max-width: 390px) {
    .historique-table {
      width: 100%;
      border-collapse: collapse;
    }
    .historique-table thead {
      display: none;
    }
    .historique-table,
    .historique-table tbody,
    .historique-table tr,
    .historique-table td {
      display: block;
      width: 100%;
      box-sizing: border-box;
      padding: 0;
    }
    .historique-table tbody tr {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 10px 0;
      border-bottom: 1px solid #eee;
      align-items: center;
    }
    .historique-table tbody tr td {
      padding: 6px 8px;
      font-size: 14px;
      color: #222;
    }

    /* Etiquettes via pseudo-éléments (fallback pour JS qui n'ajoute pas data-label) */
    .historique-table tbody tr td::before {
      display: block;
      font-size: 12px;
      color: #666;
      font-weight: 600;
      margin-bottom: 4px;
      content: attr(data-label);
    }

    /* Si data-label absent, fournir des libellés par position (Date / Référence / Statut / Total) */
    .historique-table tbody tr td:nth-child(1)::before { content: "Date"; }
    .historique-table tbody tr td:nth-child(2)::before { content: "Référence"; }
    .historique-table tbody tr td:nth-child(3)::before { content: "Statut"; }
    .historique-table tbody tr td:nth-child(4)::before { content: "Total"; }

    /* Largeur relative pour lisibilité (première colonne plus large) */
    .historique-table tbody tr td:nth-child(1) { flex: 0 0 45%; }
    .historique-table tbody tr td:nth-child(2) { flex: 0 0 55%; }
    .historique-table tbody tr td:nth-child(3) { flex: 0 0 40%; text-align: left; }
    .historique-table tbody tr td:nth-child(4) { flex: 0 0 60%; text-align: right; font-weight:600; }
  
  /* Modification des informations client */
  .content-section {
    padding: 25px 0 !important;
    margin-left: -16px;
    margin-right: -16px;
  }
  html body.nav-fixed main.account-background div.account-container div.account-content div.account-main div#section-modifier.content-section.active div#modifier-content form#modifier-form.modifier-form div.form-section div.form-row {
    grid-template-columns: 1fr;
  }
  /* Page Demande de devis */
  .devis-form-section {
    padding: 5px;
    margin: 0px;
  }
  /* Page Contactez-nous */
  .contact-form-section {
    padding: 5px;
  }
  .contact-container {
    padding: 0px;
  }
  .contact-details {
    gap: 0px;
  }

  /* PAGE Livre Photos */
  html body.nav-fixed main section.section1 div.container div.ligne {
    flex-direction: column;
  }
  html body.nav-fixed main section.section1 div.container div.container img {
    width: 330px;
    height: 90px;
  }
  /* html body.nav-fixed main section.section1 div.tableau-container div.tableau-produits div.tableau-header {
    display: none;
  }
  html body.nav-fixed main section.section1 div.tableau-container div.tableau-produits div.ligne-produit {
    grid-template-columns: 105px 129px 74px;
    gap: 3px;
  } */
  .tableau-header {
    display: none;
  }
  .ligne-produit {
    grid-template-columns: 105px 129px 107px;
    gap: 3px;
    padding: 0px !important;
  }
}
/* ********************************************************************************* */
/* *********** RESPONSIVE DESIGN Très petits écrans (320px et moins) *************** */
/* ********************************************************************************* */

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .tagline h1 {
    font-size: 1rem;
  }

  .nav-btn {
    min-width: 160px;
    padding: 10px 15px;
  }

  .search-bar {
    max-width: 250px;
  }
}
