/*
Theme Name: Astra Child - Yachting
Theme URI: http://yachting-privilege-dev.local
Description: Thème enfant pour Yachting Privilège
Author: Yann
Template: astra
Version: 1.0
*/

/* =============================
   STYLES PERSONNALISÉS YACHTING
   ============================= */

/* ============================
   1. PAGE BOUTIQUE / ARCHIVE
   ============================ */

/* Fond bleu clair + centrage du contenu */
.post-type-archive-product .site-main {
  background: #e4f5ff;           /* même esprit que ta home */
  padding: 3rem 0;
}

.post-type-archive-product .ast-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Grille responsive des produits - FORCER 4 COLONNES */
.woocommerce ul.products,
.woocommerce-page ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;  /* 4 colonnes fixes */
  gap: 2rem !important;
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive : 3 colonnes sur tablette */
@media (max-width: 1200px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Responsive : 2 colonnes sur mobile */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Responsive : 1 colonne sur petit mobile */
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Carte produit */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  padding: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* Le lien qui entoure la carte */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ré-ordonner les éléments dans la carte produit */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
.woocommerce-page ul.products li.product .woocommerce-LoopProduct-link img {
  order: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  order: 1;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  order: 2;
}

.woocommerce ul.products li.product .yp-divider,
.woocommerce-page ul.products li.product .yp-divider {
  order: 3;
}

.woocommerce ul.products li.product .yp-specs,
.woocommerce-page ul.products li.product .yp-specs {
  order: 4;
}

/* Wrapper avec ratio contrôlé pour les images produit */
.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66%; /* ratio 3:2 ~ parfait pour des bateaux */
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Image interne */
.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* remplit parfaitement le cadre */
  object-position: center; /* montre bien haut + bas */
  display: block;
}

/* Titre, prix, specs : marges internes */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce ul.products li.product .yp-specs,
.woocommerce-page ul.products li.product .yp-specs {
  padding: 0 1.75rem;
}

/* Titre du bateau */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  margin-top: 0.9rem;
  margin-bottom: 0.15rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0c2150;
}

/* Prix (juste sous le titre) */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a5f;
}

/* Petit trait de séparation sous le prix */
.woocommerce ul.products li.product .yp-divider,
.woocommerce-page ul.products li.product .yp-divider {
  height: 1px;
  margin: 0 1.75rem 0.75rem;  /* même padding horizontal que titre/prix */
  background: #d5dde7;        /* gris très clair, légèrement bleuté */
  opacity: 0.9;
}

/* Ligne de spécifications (puces) */
.yp-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0.5rem 0 0.9rem;
  padding-bottom: 0.75rem;
}

/* Puces individuelles */
.yp-chip {
  display: inline-block;
  background: #f5f7fb;
  color: #1a202c;
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .9rem;
  line-height: 1.2;
  border: 1px solid #dde3f0;
  white-space: nowrap;
}

/* Badge Année */
.badge-year {
  position: absolute;
  top: 12px;
  left: 14px;
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .9rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Cacher le résumé Astra en bas de la carte (titre + prix en doublon) */
.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
  display: none;
}

/* Cacher le bouton “Lire la suite / Ajouter au panier” sur la carte */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  display: none;
}

/* ============================
   2. FICHE PRODUIT BATEAU
   ============================ */

/* Fond global bleu + carte blanche centrale */
.single-product .site-main {
  background: #e4f5ff;
  padding: 1rem 0;
}

/* Container centré */
.single-product .ast-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Carte autour du produit */
.single-product .product {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2.5rem 3rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}

/* Galerie arrondie */
.single-product .woocommerce-product-gallery {
  border-radius: 16px;
  overflow: hidden;
}

/* Titre du bateau */
.single-product .product_title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #0c2150;
}

/* Prix principal (remplace .summary .price) */
.yp-single-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0c2150;      /* bien contrasté */
  margin: .4rem 0 1.25rem;
}

/* On masque tous les prix WooCommerce par défaut... */
.single-product .summary .price {
  display: none;
}

/* ...et on n’affiche que le premier (celui sous le titre) */
.single-product .summary .price:first-of-type {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0c2150;   /* bleu foncé bien lisible */
  margin: .6rem 0 1.4rem;
}

/* Desc courte */
.single-product .summary .woocommerce-product-details__short-description {
  margin-bottom: 1.5rem;
  font-size: .98rem;
  line-height: 1.5;
}

/* Onglets WooCommerce */
.single-product .woocommerce-tabs {
  margin-top: 2.5rem;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: .8rem 1.4rem;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: .02em;
  color: #4a5568;
  border-bottom: 3px solid transparent;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #1e3a5f;
  border-color: #1e3a5f;
  font-weight: 600;
}

/* Contenu d’onglet */
.single-product .woocommerce-Tabs-panel {
  padding-top: .5rem;
}

/* Tables de specs (notre code PHP) */
.single-product .shop_attributes {
  width: 100%;
  border-collapse: collapse;
}

.single-product .shop_attributes tr:nth-child(odd) {
  background: #f8fafc;
}

.single-product .shop_attributes th,
.single-product .shop_attributes td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  font-size: .95rem;
}

.single-product .shop_attributes th {
  width: 40%;
  font-weight: 600;
  color: #2d3748;
  background: #f1f5f9;
}

.single-product .shop_attributes td {
  color: #1a202c;
}

/* Responsive */
@media (max-width: 768px) {
  .single-product .site-main {
    padding: 1.5rem 0;
  }
  .single-product .product {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 12px;
  }
  .woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
  .woocommerce-page ul.products li.product .woocommerce-LoopProduct-link img {
    height: 220px;
  }
}  /* <-- on ferme bien le @media ici */

/* Couleurs globales texte fiche produit */
.single-product {
  color: #1a202c;
}

/* Prix : si jamais Woo ajoute du <del> / <ins> */
.single-product .summary .price del,
.single-product .summary .price ins {
  color: #1e3a5f;
}

/* Métadonnées (catégories, étiquettes) sous le bouton */
.single-product .product_meta,
.single-product .product_meta a {
  color: #1e3a5f;
  font-weight: 600;
}

/* Fil d’Ariane (breadcrumb) en haut de la fiche produit */
.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb a {
  color: #4a5568;
  font-size: 0.9rem;
}

/* Texte des onglets pour être bien lisible sur blanc */
.single-product .woocommerce-Tabs-panel {
  color: #1a202c;
  font-size: .98rem;
  line-height: 1.6;
}

/* ===============================
   Couleurs des onglets WooCommerce dans la fiche du bateau
   =============================== */

/* Texte des onglets (état normal) */
.single-product .woocommerce-tabs ul.tabs li a {
  color: #6b7a8b !important; /* gris bleu */
}

/* Texte onglet actif + bordure du bas */
.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #1e3a5f !important;        /* ton bleu marine */
  border-color: #1e3a5f !important; /* souligné actif */
  font-weight: 600;
}

/* Couleur de la ligne de séparation sous les onglets */
.single-product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid #c9d6e3 !important;  /* gris clair bleuté */
}

/* Fond des onglets (blanc) */
.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
}

/* ================================
   DESCRIPTION COURTE (sous le titre)
   ================================ */
.single-product .summary .woocommerce-product-details__short-description {
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  color: #1a202c !important;   /* gris foncé lisible */
  margin-bottom: 2rem !important;
  font-weight: 400;
}

/* ================================
   DESCRIPTION LONGUE (onglet Description)
   ================================ */
.single-product .woocommerce-Tabs-panel p {
  font-size: 1.15rem !important;
  line-height: 1.7 !important; /* plus confortable pour de longs textes */
  color: #1a202c !important;
  margin-bottom: 1.2rem !important;
}

/* Titre dans l'onglet Description */
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: #0c2150 !important;   /* bleu marine site */
  margin-bottom: 1rem;
}

/* --- TABLEAUX DES ONGLETS PRODUIT --- */

/* Ligne globale */
.single-product .shop_attributes tr {
  border-bottom: 1px solid #d7e1ea !important;
}

/* Colonne de gauche (étiquettes) */
.single-product .shop_attributes th {
  color: #0b1f44 !important;         /* Bleu marine foncé */
  font-size: 1.15rem !important;     /* Taille plus grande */
  font-weight: 700 !important;       /* Bien lisible */
  background: #e9f1fa !important;    /* Bleu très clair */
  padding: 14px 16px !important;     /* Plus d'espace */
  letter-spacing: 0.3px;             /* Aère le texte */
}

/* Colonne de droite (valeurs) */
.single-product .shop_attributes td {
  color: #1a202c !important;         /* Gris très lisible */
  font-size: 1.1rem !important;      /* Taille un peu plus grande */
  padding: 14px 16px !important;
  line-height: 1.5 !important;       /* Confort de lecture */
}

/* Alternance des lignes (léger contraste) */
.single-product .shop_attributes tr:nth-child(odd) td {
  background: #f7fafc !important;    /* Gris clair très doux */
}

/* ===============================
   Flèches custom sur la galerie produit
   =============================== */

.single-product .woocommerce-product-gallery {
  position: relative; /* pour positionner les flèches par rapport au bloc */
}

/* Style générique des flèches */
.single-product .yp-gallery-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.1s ease;
}

/* Flèche gauche */
.single-product .yp-gallery-prev {
  left: 12px;
}

/* Flèche droite */
.single-product .yp-gallery-next {
  right: 12px;
}

/* Hover */
.single-product .yp-gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.05);
}

/* ====== Sections de caractéristiques (Specifications, Motorisation...) ====== */

.single-product .yp-spec-section {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.single-product .yp-spec-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.single-product .yp-spec-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0c2150;
  margin-bottom: 1.5rem;
}

/* Grille en 2 colonnes (desktop) */
.single-product .yp-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  row-gap: 0.75rem;
}

/* Chaque ligne label + valeur */
.single-product .yp-spec-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #edf2f7;
}

.single-product .yp-spec-item:last-child {
  border-bottom: none;
}

/* Label à gauche */
.single-product .yp-spec-label {
  font-size: 0.95rem;
  color: #4a5568;
}

/* Valeur à droite, un peu plus marquée */
.single-product .yp-spec-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1a202c;
  text-align: right;
}

/* Version mobile : une seule colonne */
@media (max-width: 768px) {
  .single-product .yp-spec-grid {
    grid-template-columns: 1fr;
  }

  .single-product .yp-spec-item {
    border-bottom: 1px solid #e2e8f0;
  }

  .single-product .yp-spec-label,
  .single-product .yp-spec-value {
    font-size: 0.96rem;
  }
}

/* Tout afficher : les panels WooCommerce ne sont plus cachés */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  display: block !important;       /* force l'affichage de tous les panels */
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  scroll-margin-top: 140px;        /* pour que l'ancre ne soit pas cachée par le header */
}

/* Premier panel : pas de bordure haute */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Scroll fluide quand on clique sur un onglet */
html {
  scroll-behavior: smooth;
}

/* On garde la mise en page standard pour le produit */
.single-product .product {
  display: block !important;
}

/* ============================
   Layout 2 colonnes fiche bateau
   ============================ */

/* Wrapper global 2 colonnes */
.single-product .yp-layout {
  max-width: 1200px;
  margin: 1rem auto;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
  column-gap: 40px;
  align-items: flex-start;
}

/* Colonne gauche = fiche WooCommerce 
.single-product .yp-layout-left {
  /* rien de spécial, on laisse Woo gérer 
} */

/* Colonne droite = prix + formulaire */
.single-product .yp-layout-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Bloc prix type "cartouche" bleu */
.single-product .yp-price-box {
  background: #083a7a;        /* bleu marine */
  color: #fff;
  padding: 22px 24px;
  border-radius: 10px;
}

.single-product .yp-price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0.8;
  margin-bottom: 6px;
}

.single-product .yp-price-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.single-product .yp-price-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: #083a7a;
  font-weight: 600;
  text-decoration: none;
}

.single-product .yp-price-btn:hover {
  filter: brightness(0.95);
}

/* Bloc formulaire (fond beige comme ta maquette) */
.single-product .yp-form-box {
  background: #f4f3eb;
  padding: 24px 26px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.single-product .yp-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0c2150;
  margin: 0 0 1.2rem;
}

/* Labels + champs Fluent Forms dans la colonne droite */
.single-product .yp-form-box .ff-el-group label {
  color: #1d2d3a !important;
  font-weight: 600;
}

.single-product .yp-form-box input,
.single-product .yp-form-box textarea,
.single-product .yp-form-box select {
  color: #1d2d3a !important;
}

/* Responsive : sous 992px, on repasse en 1 colonne */
@media (max-width: 991px) {
  .single-product .yp-layout {
    grid-template-columns: 1fr;
    row-gap: 30px;
    padding: 1.5rem 1rem 3rem;
  }

  .single-product .yp-layout-right {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ============================
   En-tête fiche produit
   ============================ */

.single-product .yp-product-header {
  margin-bottom: 1.5rem;
}

.single-product .yp-product-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0c2150;
  margin: 0 0 .25rem;
}

.single-product .yp-product-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b929e;
}

/* ============================
   Galerie plein largeur dans la carte
   ============================ */

/* On casse le layout 2 colonnes d'Astra sur la fiche produit */
.single-product div.product {
  display: block !important;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Optionnel : un peu d'espace sous la galerie */
.single-product div.product .woocommerce-product-gallery {
  margin-bottom: 2rem !important;
}

/* Plan B : cacher le titre / prix résiduels dans le résumé Woo */
.single-product .summary .price,
.single-product .summary .product_title,
.single-product .summary .product_meta {
  display: none !important;
}
.single-product .product_meta {
    display: none !important;
}

/* Masquer la catégorie qui s'affiche sous la galerie
   (on garde celle du header .yp-product-category) */
.single-product .summary .posted_in,
.single-product .summary span.posted_in,
.single-product .summary .ast-woo-product-category,
.single-product .summary .ast-woo-product-category a,
.single-product .summary a[href*="/product-category/"],
.single-product .summary a[href*="product_cat="] {
  display: none !important;
}

/* Cacher la catégorie Astra sous la galerie sur la fiche produit */
.single-product .ast-woo-product-category {
  display: none !important;
}
/* Masquer la catégorie sous la galerie sur la fiche produit */
.single-product .ast-woo-product-category,
.single-product .ast-woo-product-category a {
  display: none !important;
}

/* ============================
   Galerie style horizontal avec miniatures
   ============================ */

/* Container de la galerie */
.single-product .woocommerce-product-gallery {
  position: relative;
  max-width: 100%;
}

/* Masquer les miniatures par défaut de WooCommerce */
.single-product .flex-control-thumbs {
  display: flex !important;
  gap: 10px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  padding: 0 50px; /* Espace pour les flèches */
}

/* Wrapper pour les miniatures avec scroll horizontal */
.single-product .flex-control-thumbs {
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.single-product .flex-control-thumbs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Miniatures individuelles */
.single-product .flex-control-thumbs li {
  flex: 0 0 calc(25% - 8px); /* 4 images visibles */
  max-width: calc(25% - 8px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Pour 5 images visibles, changez en : */
/* flex: 0 0 calc(20% - 8px);
   max-width: calc(20% - 8px); */

.single-product .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Image active */
.single-product .flex-control-thumbs li img.flex-active,
.single-product .flex-control-thumbs li img:hover {
  opacity: 1;
}

.single-product .flex-control-thumbs li:has(img.flex-active) {
  border-color: #1e3a5f;
}

/* Flèches de navigation pour les miniatures */
.yp-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.yp-thumb-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.yp-thumb-prev {
  left: 5px;
}

.yp-thumb-next {
  right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .single-product .flex-control-thumbs li {
    flex: 0 0 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
  }
}

@media (max-width: 480px) {
  .single-product .flex-control-thumbs li {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

/* ============================
   Galerie style horizontal avec miniatures
   ============================ */

/* Container de la galerie */
.single-product .woocommerce-product-gallery {
  position: relative;
  max-width: 100%;
}

/* Masquer les miniatures par défaut de WooCommerce */
.single-product .flex-control-thumbs {
  display: flex !important;
  gap: 10px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  padding: 0 50px; /* Espace pour les flèches */
}

/* Wrapper pour les miniatures avec scroll horizontal */
.single-product .flex-control-thumbs {
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.single-product .flex-control-thumbs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Miniatures individuelles */
.single-product .flex-control-thumbs li {
  flex: 0 0 calc(25% - 8px); /* 4 images visibles */
  max-width: calc(25% - 8px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Pour 5 images visibles, changez en : */
/* flex: 0 0 calc(20% - 8px);
   max-width: calc(20% - 8px); */

.single-product .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Image active */
.single-product .flex-control-thumbs li img.flex-active,
.single-product .flex-control-thumbs li img:hover {
  opacity: 1;
}

.single-product .flex-control-thumbs li:has(img.flex-active) {
  border-color: #1e3a5f;
}

/* Flèches de navigation pour les miniatures */
.yp-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.yp-thumb-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.yp-thumb-prev {
  left: 5px;
}

.yp-thumb-next {
  right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .single-product .flex-control-thumbs li {
    flex: 0 0 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
  }
}

@media (max-width: 480px) {
  .single-product .flex-control-thumbs li {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

/* ============================
   Formulaire sticky qui suit le scroll
   ============================ */

/* Colonne droite sticky */
.single-product .yp-layout-right {
  position: sticky;
  top: 100px; /* Ajustez selon la hauteur de votre header */
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Pour éviter que le formulaire ne dépasse l'écran */
.single-product .yp-form-box {
  max-height: calc(100vh - 350px); /* Ajustez selon vos besoins */
  overflow-y: auto;
}

/* Scrollbar personnalisée pour le formulaire si nécessaire */
.single-product .yp-form-box::-webkit-scrollbar {
  width: 6px;
}

.single-product .yp-form-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.single-product .yp-form-box::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.single-product .yp-form-box::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Sur mobile, désactiver le sticky */
@media (max-width: 991px) {
  .single-product .yp-layout-right {
    position: static;
    max-height: none;
  }
  
  .single-product .yp-form-box {
    max-height: none;
    overflow-y: visible;
  }
}

/* Si vous avez un header fixe, ajustez le top */
.main-header-bar.is-scrolled ~ * .single-product .yp-layout-right {
  top: 80px; /* Hauteur de votre header fixe + marge */
}

/* ============================
   Cacher l'icône panier au survol des produits
   ============================ */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button,
.woocommerce ul.products li.product .ast-on-card-button,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a.button,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link + a.button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product .ast-shop-thumbnail-wrap .ast-on-card-button {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ============================
   Icônes stylisées page d'accueil
   ============================ */
.yp-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.yp-service-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    transition: all 0.3s ease;
}

.yp-service-card:hover .yp-service-icon {
    background: linear-gradient(135deg, rgba(33,150,243,0.4), rgba(33,150,243,0.15));
    border-color: #2196F3;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(33,150,243,0.5);
}

.yp-service-card:hover .yp-service-icon svg {
    transform: scale(1.1);
}

/* ============================
   Carte page d'accueil entièrement cliquable (lien vers vente et location)
   ============================ */
a.yp-service-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

a.yp-service-card:hover {
    text-decoration: none !important;
    color: inherit;
}

/* Titre jamais souligné */
a.yp-service-card h3 {
    color: white;
    text-decoration: none !important;
}

/* Bouton au repos */
a.yp-service-card .yp-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none !important;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* Effet bleu UNIQUEMENT au survol de la carte entière */
a.yp-service-card:hover .yp-service-link {
    background: #2196F3;
    transform: translateX(5px);
}

/* Désactiver l'effet au survol du texte seul */
a.yp-service-card .yp-service-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

/* Réactiver l'effet quand on survole la carte */
a.yp-service-card:hover .yp-service-link:hover {
    background: #2196F3;
    transform: translateX(5px);
}

/* ============================
   Lightbox page Location - Image entière
   ============================ */
.lightbox {
    padding: 20px;
}

.lightbox-content {
    max-width: 90vw !important;
    max-height: 85vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100% !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ============================
   Miniatures page Location - Image entière
   ============================ */
.boat-gallery-main img {
    object-fit: contain !important;
    background: #f5f5f5;
}

.boat-thumb img {
    object-fit: contain !important;
    background: #f5f5f5;
}

/* ============================
   Police EB Garamond pour le menu
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&display=swap');

/* Menu principal */
.main-header-menu .menu-link,
.main-header-menu a.menu-link,
.ast-header-sections-navigation .menu-link,
.ast-nav-menu a {
    font-family: 'EB Garamond', serif !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

/* Bouton "Estimer Maintenant" */
.ast-custom-button,
.ast-header-button,
.menu-link.ast-custom-button {
    font-family: 'EB Garamond', serif !important;
    font-weight: 600 !important;
}

/* ============================
   Fix lettres descendantes dans les filtres
   ============================ */
.shop-advanced-filters .filter-group select {
    padding: 14px 35px 14px 12px !important;
    line-height: 1.4 !important;
    height: auto !important;
}

.shop-advanced-filters .filter-group select option {
    padding: 8px 12px !important;
    line-height: 1.5 !important;
}

/* =========================================================
   ONGLETS ACF - FICHE PRODUIT
   ========================================================= */

/* Section specs dans les onglets */
.yp-spec-section {
    padding: 20px 0;
}

.yp-spec-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    color: #0c2150;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196F3;
}

.yp-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.yp-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
}

.yp-spec-item:hover {
    background: transparent;
}

.yp-spec-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 0 0 55%;
}

.yp-spec-value {
    color: #0c2150;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    flex: 0 0 40%;
}

.yp-spec-value .yp-textarea-value {
    text-align: left;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4a5568;
}

/* Champs Informations complémentaires en gras */
.yp-spec-info {
    grid-column: 1 / -1;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.yp-spec-info .yp-spec-label {
    font-weight: 500;
    color: #4a5568;
}

.yp-spec-info .yp-spec-value {
    font-weight: 700;
    color: #0c2150;
}

.yp-spec-info .yp-spec-value .yp-textarea-value {
    font-weight: 700;
    color: #0c2150;
}

/* =========================================================
   DESCRIPTION PRODUIT (avant les onglets)
   ========================================================= */
.yp-product-description {
    max-width: 1200px;
    margin: 30px auto 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.yp-desc-title {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: #0c2150;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2196F3;
}

.yp-desc-content {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
}

.yp-desc-content p {
    margin-bottom: 15px;
}

.yp-desc-content p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   CACHER LES PROPRIÉTÉS WOOCOMMERCE
   ========================================================= */
.woocommerce-product-attributes,
.woocommerce-product-attributes-item,
.shop_attributes,
table.woocommerce-product-attributes,
.woocommerce-Tabs-panel--additional_information,
#tab-additional_information,
.wc-tab[id*="proprietes"],
.wc-tab[id*="propriétés"] {
    display: none !important;
}

/* Cacher l'onglet Propriétés dans la navigation */
.woocommerce-tabs .tabs li a[href*="additional_information"],
.woocommerce-tabs .tabs li a[href*="proprietes"],
.woocommerce-tabs .tabs li.additional_information_tab,
.woocommerce-tabs .tabs li.proprietes_tab {
    display: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .yp-spec-grid {
        grid-template-columns: 1fr;
    }
    
    .yp-spec-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .yp-spec-label,
    .yp-spec-value {
        flex: none;
        width: 100%;
        text-align: left;
    }
    
    .yp-spec-value {
        color: #2196F3;
    }
    
    .yp-product-description {
        margin: 20px 15px 30px;
        padding: 20px;
    }
    
    .yp-desc-title {
        font-size: 1.6rem;
    }
}

/* =========================================================
   PAGINATION BOUTIQUE - Style élégant
   ========================================================= */

/* Reset complet de la pagination WooCommerce */
.woocommerce nav.woocommerce-pagination,
.woocommerce-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 50px auto 30px !important;
    padding: 20px 0 !important;
    clear: both;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-pagination ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Enlever effets sur li au hover */
.woocommerce nav.woocommerce-pagination ul li:hover,
.woocommerce-pagination ul li:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce nav.woocommerce-pagination ul li::before,
.woocommerce nav.woocommerce-pagination ul li::after,
.woocommerce-pagination ul li::before,
.woocommerce-pagination ul li::after {
    display: none !important;
    content: none !important;
}

/* Style des boutons de pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #0c2150 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Enlever outline sur focus */
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li span:focus,
.woocommerce-pagination ul li a:focus,
.woocommerce-pagination ul li span:focus {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Enlever pseudo-éléments qui créent le carré */
.woocommerce nav.woocommerce-pagination ul li a::before,
.woocommerce nav.woocommerce-pagination ul li a::after,
.woocommerce nav.woocommerce-pagination ul li span::before,
.woocommerce nav.woocommerce-pagination ul li span::after,
.woocommerce-pagination ul li a::before,
.woocommerce-pagination ul li a::after,
.woocommerce-pagination ul li span::before,
.woocommerce-pagination ul li span::after {
    display: none !important;
    content: none !important;
}

/* Hover */
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li a:hover {
    background: #0c2150 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(12, 33, 80, 0.3) !important;
    outline: none !important;
}

/* Page active */
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li span.current {
    background: #2196F3 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3) !important;
}

/* Flèches précédent/suivant */
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce-pagination ul li a.prev,
.woocommerce-pagination ul li a.next {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    background: #2196F3 !important;
    color: #ffffff !important;
}

.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce nav.woocommerce-pagination ul li a.next:hover,
.woocommerce-pagination ul li a.prev:hover,
.woocommerce-pagination ul li a.next:hover {
    background: #0c2150 !important;
}

/* Points de suspension */
.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce-pagination ul li span.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #4a5568 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 0.9rem !important;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next,
    .woocommerce-pagination ul li a.prev,
    .woocommerce-pagination ul li a.next {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
    
    .woocommerce nav.woocommerce-pagination ul,
    .woocommerce-pagination ul {
        gap: 8px !important;
    }
}

/* Cacher compteur de bateaux dans la boutique (sous les filtres) */
[class*="result"],
[class*="count"] {
    display: none !important;
}

/* Fix couleur texte des selects filtres */
.shop-advanced-filters .filter-group select {
    color: #4a5568 !important;
    background-color: white !important;
}

.shop-advanced-filters .filter-group select option {
    color: #4a5568 !important;
    background-color: white !important;
}

.shop-advanced-filters .filter-group select option:checked {
    background: #2196F3 !important;
    color: white !important;
}

/* Formulaire fiche produit - fond blanc */
.single-product .yp-form-box {
    background: #ffffff !important;
}

.single-product .yp-form-box input,
.single-product .yp-form-box textarea,
.single-product .yp-form-box select {
    background: #f5f7fa !important;
    color: #1d2d3a !important;
    border: 1px solid #e2e8f0 !important;
}

.single-product .yp-form-box input::placeholder,
.single-product .yp-form-box textarea::placeholder {
    color: #9ca3af !important;
}

/* Formulaire fiche produit - garder fond blanc à la saisie */
.single-product .yp-form-box input:focus,
.single-product .yp-form-box textarea:focus,
.single-product .yp-form-box select:focus,
.single-product .yp-form-box input:active,
.single-product .yp-form-box textarea:active,
.single-product .yp-form-box select:active {
    background: #ffffff !important;
    color: #1d2d3a !important;
    border-color: #2196F3 !important;
}

/* ============================
   FIX GLOBAL - Fond mobile toutes pages
   ============================ */

/* Forcer le fond clair sur mobile pour le body et le site */
@media (max-width: 1024px) {
    body,
    .site,
    .site-content,
    .ast-container,
    .entry-content,
    #primary,
    #main,
    .site-main {
        background-color: #e4f5ff !important;
    }
    
    /* Header transparent sur mobile aussi */
    .main-header-bar {
        background: transparent !important;
    }
    
    /* S'assurer que les titres restent visibles */
    .yp-hero h1,
    .location-header-minimal h1,
    .team-header-minimal h1,
    .services-header h1,
    .contact-header-minimal h1,
    .shop-header-custom h1 {
        color: #0c2150 !important;
    }
    
    .yp-hero-subtitle,
    .location-header-minimal p,
    .team-header-minimal p,
    .services-header p,
    .contact-header-minimal p,
    .shop-header-custom p {
        color: #1e3a5f !important;
    }
}

/* Fix spécifique pour le header Astra sur mobile */
@media (max-width: 768px) {
    .ast-mobile-header-wrap,
    .ast-mobile-header-content,
    #ast-mobile-header {
        background: transparent !important;
    }
    
    /* Menu hamburger - garder visible */
    .ast-mobile-menu-buttons .menu-toggle {
        color: #0c2150 !important;
    }
}

/* ============================
   FIX RESPONSIVE - Petits écrans (iPhone SE, Galaxy S8+)
   ============================ */

/* Header - Logo et texte sur petits écrans */
@media (max-width: 400px) {
    /* Réduire la taille du logo et du texte header */
    .ast-site-identity {
        max-width: 200px;
    }
    
    .site-logo-img,
    .custom-logo {
        max-height: 40px !important;
        width: auto !important;
    }
    
    .site-title {
        font-size: 1rem !important;
    }
    
    .site-description {
        font-size: 0.7rem !important;
        display: none; /* Cacher "COURTAGE MARITIME" sur très petit écran */
    }
    
    /* Menu hamburger plus compact */
    .ast-mobile-menu-buttons {
        padding: 0 5px;
    }
}

/* ============================
   FIX - Cartes services page d'accueil responsive
   ============================ */

@media (max-width: 600px) {
    /* Overlay avec les boutons */
    .yp-services-overlay {
        padding: 20px 15px !important;
        gap: 15px !important;
        flex-direction: column !important;
    }
    
    /* Cartes de services */
    .yp-service-card {
        min-width: 100% !important;
        width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 !important;
    }
    
    /* Icônes plus petites */
    .yp-service-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 15px !important;
    }
    
    .yp-service-icon svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Titres des cartes */
    .yp-service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Boutons */
    .yp-service-link {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    /* Image de fond moins haute */
    .yp-services-image {
        height: 450px !important;
    }
}

/* Très petits écrans (iPhone SE) */
@media (max-width: 375px) {
    .yp-services-image {
        height: 400px !important;
    }
    
    .yp-service-card {
        padding: 15px 12px !important;
    }
    
    .yp-service-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .yp-service-icon svg {
        width: 25px !important;
        height: 25px !important;
    }
    
    .yp-service-card h3 {
        font-size: 0.9rem !important;
    }
    
    .yp-service-link {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Hero titre plus petit */
    .yp-hero h1 {
        font-size: 1.4rem !important;
        letter-spacing: 1px !important;
    }
    
    .yp-hero-subtitle {
        font-size: 0.95rem !important;
    }
}

/* ============================
   FIX - Header Astra mobile compact
   ============================ */

@media (max-width: 480px) {
    .main-header-bar {
        padding: 5px 10px !important;
    }
    
    .ast-site-identity {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    /* Logo container */
    .site-branding {
        max-width: 180px;
    }
    
    /* Forcer le logo à ne pas déborder */
    .site-branding img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ============================
   RESPONSIVE FLUIDE - S'adapte à tous les écrans
   ============================ */

/* Détection appareil tactile (tous smartphones) */
@media (hover: none) and (pointer: coarse) {
    
    /* Titres - scale de 1.3rem à 1.8rem selon l'écran */
    .single-product .yp-product-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    }
    
    .single-product .yp-spec-title {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem) !important;
    }
    
    .single-product .yp-desc-title {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
    }
    
    /* Texte specs - scale de 0.85rem à 1.05rem */
    .single-product .yp-spec-label {
        font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
    }
    
    .single-product .yp-spec-value {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem) !important;
    }
    
    /* Description */
    .single-product .yp-desc-content,
    .single-product .yp-desc-content p {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem) !important;
        line-height: 1.7 !important;
    }
    
    /* Prix - scale de 1.3rem à 1.6rem */
    .single-product .yp-price-value {
        font-size: clamp(1.3rem, 4vw, 1.6rem) !important;
    }
    
    .single-product .yp-price-label {
        font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
    }
    
    /* Formulaire */
    .single-product .yp-form-title {
        font-size: clamp(1rem, 3vw, 1.25rem) !important;
    }
    
    .single-product .yp-form-box label,
    .single-product .yp-form-box .ff-el-group label {
        font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
    }
    
    /* Inputs - minimum 16px pour éviter zoom iOS */
    .single-product .yp-form-box input,
    .single-product .yp-form-box textarea,
    .single-product .yp-form-box select {
        font-size: 16px !important;
        padding: clamp(10px, 2.5vw, 14px) !important;
    }
    
    /* Onglets specs */
    .single-product .woocommerce-tabs ul.tabs li a {
        font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
        padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 18px) !important;
    }
    
    /* Espacements fluides */
    .single-product .yp-layout {
        padding: clamp(10px, 3vw, 20px) !important;
        gap: clamp(15px, 4vw, 25px) !important;
    }
    
    .single-product .yp-form-box,
    .single-product .yp-price-box {
        padding: clamp(15px, 4vw, 24px) !important;
        border-radius: clamp(10px, 2.5vw, 14px) !important;
    }
    
    .single-product .yp-product-description {
        padding: clamp(15px, 4vw, 25px) !important;
        margin: clamp(10px, 3vw, 20px) !important;
    }
    
    /* Specs grid en 1 colonne sur mobile */
    .single-product .yp-spec-grid {
        grid-template-columns: 1fr !important;
    }
    
    .single-product .yp-spec-item {
        padding: clamp(8px, 2vw, 12px) 0 !important;
    }
    
    /* Galerie miniatures en grille 2x2 */
    .single-product .flex-control-thumbs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(8px, 2vw, 12px) !important;
        padding: clamp(8px, 2vw, 12px) !important;
    }
    
    .single-product .flex-control-thumbs li {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 4/3 !important;
        flex: none !important;
    }
    
    /* Flèches galerie */
    .single-product .yp-gallery-arrow {
        width: clamp(36px, 10vw, 50px) !important;
        height: clamp(36px, 10vw, 50px) !important;
        font-size: clamp(16px, 4vw, 22px) !important;
    }
    
    /* Cacher nav miniatures sur tactile */
    .yp-thumb-nav {
        display: none !important;
    }
}