/* =========================================================
   ISIKA CONCEPT — Responsive
   Chargée en dernier (footer.twig) pour surcharger
   style.css / header.css / accueil.css / footer.css / etc.
   Breakpoints Bootstrap 5 : sm 576 / md 768 / lg 992 / xl 1200
   ========================================================= */

/* ---------- Garde-fous globaux ---------- */
html,
body {
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}
/* Le cercle 64px bridait l'image de 162px : elle débordait sur la nav */
.logo-circle {
  width: auto !important;
  height: auto !important;
  line-height: 0;
}
/* Évite le zoom auto iOS sur les champs (< 16px) */
@media (max-width: 767.98px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Zones tactiles confortables */
@media (max-width: 991.98px) {
  .btn,
  button,
  .nav-link,
  a.btn-tertiary,
  input[type="submit"] {
    min-height: 44px;
  }
}
@media (max-width: 991.98px) {
  /* Empêche "0,00 €" de se couper sur deux lignes */
  .header-actions .small,
  .header-actions .text-muted {
    white-space: nowrap;
  }
}
/* Le zoom au survol n'a aucun sens sur écran tactile */
@media (hover: none), (max-width: 991.98px) {
  .zoom-container:hover img {
    transform: none !important;
    cursor: default;
  }
  .zoom-container {
    max-height: none;
  }
}
@media (max-width: 575.98px) {
  .header-actions .small {
    font-size: 0.7rem !important;
    white-space: nowrap;
  }
}
/* =========================================================
   HEADER
   ========================================================= */
@media (max-width: 991.98px) {
  /* la hauteur fixe 190px est neutralisée côté twig (classe header-top) */
  .header-top {
    height: auto !important;
  }

  .logo-header {
    height: 120px !important;
  }

  .logo-circle {
    width: auto;
    height: auto;
  }

  /* Recherche : pleine largeur sous le logo */
  .header-search {
    width: 100%;
  }

  .search-results {
    max-height: 60vh;
  }

  /* Compte / Panier plus compacts */
  .header-actions {
    gap: 1.5rem !important;
  }

  .nav-link {
    font-size: 15px !important;
  }
}

@media (max-width: 575.98px) {
  .logo-header {
    height: 95px !important;
  }
  .header-actions {
    gap: 1rem !important;
  }
  .header-actions .fs-3 {
    font-size: 1.35rem !important;
  }
}

/* Menu mobile (offcanvas) : on annule les séparateurs verticaux
   et le dropdown au survol, inadaptés au tactile */
.offcanvas-nav .nav-item.border-item::before,
.offcanvas-nav .nav-item.border-item::after {
  display: none;
}

.offcanvas-nav .nav-item .dropdown-menu {
  position: static !important;
  display: block !important;
  border: 0;
  padding-left: 1rem;
  min-width: 0;
}

.offcanvas-nav .nav-link:hover {
  background: transparent;
  color: #885346 !important;
}

.offcanvas-nav .nav {
  flex-direction: column;
  align-items: flex-start;
}

.offcanvas-nav .nav-link {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* =========================================================
   ACCUEIL — Hero
   ========================================================= */
@media (max-width: 991.98px) {
  .hero-section {
    height: 380px;
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 56px;
    line-height: 46px;
  }
  .hero-content .fs-5 {
    font-size: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    height: 320px;
  }
  .hero-content {
    padding: 12px;
  }
  .hero-content h1 {
    font-size: 40px;
    line-height: 36px;
  }
  .hero-content .fs-5 {
    font-size: 0.9rem !important;
  }
  .hero-content a,
  .btn-tertiary {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    display: inline-block;
  }
}

/* =========================================================
   ACCUEIL — Carousel "Nouvel article"
   ========================================================= */
@media (max-width: 991.98px) {
  .carousel-items {
    height: 400px;
  }
  .carousel-text {
    left: 50%;
    transform: translateX(-50%);
    top: 12%;
    text-align: center;
    width: 90%;
    max-width: 90%;
  }
  .carousel-text h1 {
    font-size: 52px !important;
    line-height: 46px !important;
  }
  .carousel-text p {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .carousel-items {
    height: 340px;
  }
  .carousel-text h1 {
    font-size: 38px !important;
    line-height: 34px !important;
  }
  .carousel-text .fs-5 {
    font-size: 1rem !important;
  }
  .slick-prev,
  .slick-next {
    display: none !important;
  }
}

/* =========================================================
   ACCUEIL — Blocs catégories
   ========================================================= */
@media (max-width: 991.98px) {
  .categorie-bg {
    height: 360px;
  }
  .categorie-text {
    top: 55%;
    padding: 0 0.5rem;
  }
  .categorie-text p {
    font-size: 30px;
    line-height: 30px;
  }
  .categorie-text a {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    font-size: 0.85rem !important;
    display: inline-block;
  }
}

@media (max-width: 575.98px) {
  .categorie-bg {
    height: 280px;
  }
  .categorie-text p {
    font-size: 24px;
    line-height: 26px;
    padding-bottom: 1.5rem !important;
  }
  .categorie-text a {
    font-size: 0.78rem !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* =========================================================
   ACCUEIL — Carousel info (texte + image)
   ========================================================= */
@media (max-width: 767.98px) {
  /* la hauteur inline 455px est neutralisée par la classe carousel-info-row */
  .carousel-info-row {
    height: auto !important;
  }
  .carousel-item-info,
  .carousel-descri-bg-info,
  .carousel-descri-bg {
    height: 240px;
  }
  .carousel-descri-text {
    padding: 2rem 1.25rem !important;
    height: auto !important;
  }
  .carousel-descri-title {
    font-size: 26px;
  }
  .carousel-descri-subtitle {
    font-size: 16px;
  }
  /* slick force display:flex + align-items:center sur les slides */
  .carousel-info .slick-slide > div {
    width: 100%;
  }
}

/* =========================================================
   ACCUEIL — Mission & Notre concept
   ========================================================= */
@media (max-width: 991.98px) {
  .mission-bg {
    height: auto;
    padding: 3rem 1.25rem;
  }
  .mission-title {
    font-size: 30px;
  }
  .mission-subtitle {
    width: 100%;
    font-size: 16px;
    line-height: 30px;
  }
  /* Les guillemets débordaient de -120px */
  .quote-icon {
    position: static;
    transform: none;
    display: block;
    font-size: 1.75rem;
    margin: 0.5rem auto;
  }
  .left-quote,
  .right-quote {
    left: auto;
    right: auto;
  }

  .notre-concept {
    height: auto;
  }
  .notre-concept-img {
    min-height: 260px;
    background-position: center;
  }
  .notre-concept-title {
    font-size: 26px;
    line-height: 30px;
  }
  .notre-concept-subtitle {
    font-size: 16px;
  }
  .notre-concept .px-5 {
    padding: 2rem 1.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .fs-1 {
    font-size: 1.6rem !important;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
@media (max-width: 767.98px) {
  .newsletter-title {
    font-size: 26px;
  }
  .newsletter-input {
    width: 100% !important;
    max-width: 220px;
  }
  .custom-border-bottom {
    width: 100%;
  }
  .footer-menu-divider {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }
  .footer-logo {
    width: 26px !important;
  }
}

/* =========================================================
   BOUTIQUE / CATÉGORIE / PRODUIT
   ========================================================= */
@media (max-width: 991.98px) {
  .card-img-produit {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .single_add_to_cart_button {
    font-size: 18px !important;
    width: 100%;
  }
  .woocommerce div.product form.cart div.quantity {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  /* Fil d'ariane produit : la bordure gauche + flex cassaient sur mobile */
  .single-product-breadcrumb {
    flex-wrap: wrap;
  }
  .single-product-breadcrumb .breadcrumb {
    border-left: 0;
    padding-left: 0 !important;
    flex-wrap: wrap;
  }
  .thumbnails {
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Boutons "Détails / Acheter" des cartes produit */
  .card-body .d-flex .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* =========================================================
   TABLEAUX (panier, paiement, suivi de commande)
   Passage en "cartes" empilées sous 768px
   ========================================================= */
@media (max-width: 767.98px) {
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tfoot,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100% !important;
  }

  .table-stack tr {
    border: 1px solid #e3e3e3;
    margin-bottom: 1rem;
    padding: 0.5rem;
  }

  .table-stack td {
    border: 0 !important;
    text-align: right !important;
    padding: 0.6rem 0.25rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  /* Libellé de colonne reconstitué à partir de data-label */
  .table-stack td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: #412f2c;
    text-align: left;
    flex: 0 0 auto;
  }

  /* La cellule "Article" garde son layout image + texte */
  .table-stack td.cart-product-cell {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .table-stack td.cart-product-cell::before {
    content: none;
  }
  .table-stack td.cart-product-cell img {
    width: 70px !important;
  }
  .table-stack td.cart-product-cell .fs-5 {
    font-size: 1rem !important;
  }

  .table-stack tfoot tr {
    border: 0;
    margin-bottom: 0;
    padding: 0;
  }
  .table-stack tfoot td {
    padding: 0.35rem 0.25rem !important;
  }

  /* Barres de boutons du tunnel de commande */
  .actions-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .actions-bar > * {
    flex: 1 1 auto;
    text-align: center;
  }
  .actions-bar .ms-auto,
  .actions-bar .ms-3 {
    margin-left: 0 !important;
  }
  .actions-bar .px-4 {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  /* Code promo */
  .promo-bar {
    flex-wrap: wrap;
    height: auto !important;
    gap: 0.5rem;
  }
  .promo-bar input {
    flex: 1 1 160px;
    min-height: 40px;
  }
  .promo-bar .ms-3 {
    margin-left: 0 !important;
  }
}

/* =========================================================
   FORMULAIRES (info client, livraison, compte)
   ========================================================= */
@media (max-width: 767.98px) {
  /* largeurs figées w-75 / w-50 / width:400px */
  .info-client-form .w-75,
  .info-client-form .w-50 {
    width: 100% !important;
  }
  .info-client-form textarea {
    width: 100% !important;
    max-width: 100%;
  }
  .flatpickr-calendar {
    max-width: 100%;
  }
  .bloc-button-account {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* =========================================================
   Impression / PDF facture : on ne touche pas au layout
   ========================================================= */
@media print {
  .header,
  #footer {
    display: none !important;
  }
}
