/* RecycleOffice (13/11/2026) : fiche produit (maquette validée par Guillaume).
   Chargé par templates/catalog/product.tpl du thème enfant (changer le ?v= à chaque modification).
   Vert du site : #4C7777 (foncé), #6CA6A3. */

/* ---------- Galerie ---------- */
.ro-galerie { display: grid; gap: 10px; }
.ro-galerie-photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(600px, 56vh);
  background: #fff; border: 1px solid #ececec; border-radius: 8px; overflow: hidden; outline: none;
}
.ro-galerie-slides { position: absolute; inset: 0; }
.ro-galerie-slide { position: absolute; inset: 0; display: none; }
.ro-galerie-slide.is-active { display: block; }
.ro-galerie-slide .easyzoom,
.ro-galerie-slide .easyzoom > a,
.ro-galerie-slide picture { display: block; width: 100%; height: 100%; }
.ro-galerie-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ro-galerie-slide .easyzoom > a { cursor: zoom-in; }

.ro-galerie .ro-galerie-fleche {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #222; border: 1px solid #e3e3e3; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  cursor: pointer; opacity: 1; transition: background-color .15s, color .15s, border-color .15s;
}
.ro-galerie .ro-galerie-fleche:hover { background: #4C7777; border-color: #4C7777; color: #fff; }
.ro-galerie .ro-galerie-prec { left: 12px; }
.ro-galerie .ro-galerie-suiv { right: 12px; }

.ro-galerie-compteur {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; pointer-events: none;
  padding: 6px 10px; border-radius: 999px; background: rgba(34, 34, 34, .78); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.ro-galerie .ro-galerie-agrandir {
  position: absolute; right: 12px; bottom: 12px; left: auto; top: auto; z-index: 3;
  display: none; align-items: center; gap: 6px; width: auto; height: 32px; padding: 0 12px; margin: 0;
  border-radius: 999px; border: 1px solid #e3e3e3; background: #fff; color: #222;
  font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; opacity: 1; visibility: visible; transform: none;
}
.ro-galerie .ro-galerie-slide.is-active .ro-galerie-agrandir { display: inline-flex; }
.ro-galerie .ro-galerie-agrandir:hover { border-color: #4C7777; color: #4C7777; }
.ro-galerie-seule .ro-galerie-slide .easyzoom > a { cursor: zoom-in; }

.ro-galerie-vignettes {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 8px) / 5); gap: 8px;
  overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px;
}
.ro-galerie-vignette {
  aspect-ratio: 1 / 1; padding: 0; overflow: hidden; cursor: pointer;
  background: #fff; border: 2px solid #e6e6e6; border-radius: 6px;
}
.ro-galerie-vignette picture { display: block; width: 100%; height: 100%; }
.ro-galerie-vignette img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ro-galerie-vignette:hover { border-color: #b9cfcd; }
.ro-galerie-vignette[aria-current="true"] { border-color: #4C7777; }

.ro-galerie-points { display: none; justify-content: center; gap: 7px; }
.ro-galerie-points span { width: 8px; height: 8px; border-radius: 4px; background: #cfd6d3; transition: width .2s; }
.ro-galerie-points span.is-active { width: 20px; background: #4C7777; }

.ro-galerie button:focus-visible,
.ro-galerie-photo:focus-visible { outline: 3px solid #6CA6A3; outline-offset: 2px; }

@media (max-width: 767.98px) {
  .ro-galerie-photo { max-height: none; border: 0; border-radius: 0; }
  .ro-galerie-vignettes { display: none; }
  .ro-galerie-points { display: flex; }
  .ro-galerie .ro-galerie-fleche { width: 38px; height: 38px; }
  .ro-galerie .ro-galerie-prec { left: 8px; }
  .ro-galerie .ro-galerie-suiv { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ro-galerie *, .ro-galerie-points span { transition: none !important; }
}

/* ---------- Fil d'Ariane (téléphone : seulement la catégorie parente) ---------- */
@media (max-width: 767.98px) {
  .product-action-wrap .ro-fil li.breadcrumb-item { display: none; }
  .product-action-wrap .ro-fil li.breadcrumb-item.ro-fil-parent { display: inline-flex; }
  .product-action-wrap .ro-fil li.breadcrumb-item.ro-fil-parent::before,
  .product-action-wrap .ro-fil li.breadcrumb-item.ro-fil-parent::after { display: none; }
  .ro-fil .ro-fil-parent a::before { content: "\2039\00a0"; }
}

/* ---------- Haut de fiche ---------- */
.ro-mesures { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.ro-mesure {
  padding: 3px 9px; border-radius: 4px; background: #f4f6f5; border: 1px solid #e3e8e6;
  color: #222; font-size: 13px; font-weight: 600; line-height: 1.5;
}

.ro-resume > .product-description { line-height: 1.6; }
.ro-resume:not(.ro-resume-court) > .product-description { max-height: 6.4em; overflow: hidden; position: relative; margin-bottom: 0; }
.ro-resume > .product-description.is-coupe::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.ro-resume-suite {
  display: inline-block; margin: 6px 0 2px; color: #4C7777; font-size: 13px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.ro-resume-suite:hover { color: #2f5252; }
.ro-resume-suite[hidden] { display: none; }

/* Le bloc de l'ancienne ligne « SKU » est vide : on garde sa ligne de séparation, sans le blanc autour. */
.product-information .js-product-images-modal { margin-top: 14px; padding-top: 0; }
.product-information .product-prices { margin-top: 12px; }
.product-prices .ro-ref { margin: 0 0 2px; color: #888; font-size: 12px; }
.product-prices .current-price { align-items: baseline !important; column-gap: 6px; }
.product-prices .ro-prix-taxe { color: #666; font-size: 15px; font-weight: 600; }

/* Bouton de la fiche PDF (module rofichepdf) */
.rofiche-download { margin: 16px 0 12px; }
.rofiche-download .rofiche-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px;
  background: #f4f6f5; border: 1px solid #e3e8e6; border-radius: 6px;
  color: #222; font-weight: 600; text-transform: none; letter-spacing: 0; text-align: left; white-space: normal;
}
.rofiche-download .rofiche-btn .material-icons { color: #4C7777; }
.rofiche-download .rofiche-btn:hover { background: #fff; border-color: #4C7777; color: #4C7777; }

/* ---------- Bas de fiche ---------- */
/* 13/11/2026 (Guillaume : « comme LDLC », « la page est devenue très terne ») : bande grise sur toute la largeur,
   barre d'onglets collante (onglet de la partie lue en blanc, liseré vert), panneaux blancs. */
.ro-fiche-bas {
  margin-top: 48px; padding: 0 0 40px; background: #eef2f1;
  box-shadow: 0 0 0 100vmax #eef2f1; clip-path: inset(0 -100vmax);
}
.ro-onglets {
  position: sticky; top: var(--ro-entete, 0px); z-index: 20; transition: top .3s ease;
  display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px;
  background: #dde5e3; box-shadow: 0 0 0 100vmax #dde5e3; clip-path: inset(0 -100vmax);
}
.ro-onglets::-webkit-scrollbar { display: none; }
.ro-onglets a {
  flex: none; padding: 15px 24px; border-top: 3px solid transparent; border-right: 1px solid #c9d4d1;
  color: #2b3634; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s;
}
.ro-onglets a:first-child { border-left: 1px solid #c9d4d1; }
.ro-onglets a:hover { background: #eef2f1; color: #1d2b2a; }
.ro-onglets a.is-actif { background: #fff; color: #1d2b2a; border-top-color: #4C7777; }
.ro-onglets.is-colle { box-shadow: 0 0 0 100vmax #dde5e3, 0 4px 10px rgba(0, 0, 0, .08); }

.ro-panneaux { display: grid; gap: 20px; }
.ro-panneau { min-width: 0; padding: 28px 32px; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .07); }
.ro-panneau-titre { margin: 0 0 16px; color: #1d2b2a; font-size: 28px; line-height: 1.1; }
.page-product .product-accessories { margin-top: 48px; }

.ro-fiche-desc .rte-content { max-width: 85ch; color: #333; font-size: 15.5px; line-height: 1.75; }
.ro-fiche-desc .rte-content > p:first-child { color: #1d2b2a; font-size: 17px; font-weight: 500; }
.ro-fiche-desc .rte-content strong, .ro-fiche-desc .rte-content b { color: #1d2b2a; }

/* Fiche technique en tableau : libellé en gras sur fond gris, valeur à droite. */
.ro-fiche-tech .product-features > p.h6 { display: none; }
.ro-fiche-tech .product-features { margin: 0; }
.ro-fiche-tech .product-reference,
.ro-fiche-tech .product-features .data-sheet li {
  display: grid; grid-template-columns: minmax(150px, 36%) 1fr; max-width: 860px;
  margin: 0; padding: 0; border: 1px solid #dfe6e4; border-top: 0; background: #fff;
}
.ro-fiche-tech .product-reference { border-top: 1px solid #dfe6e4; }
.ro-fiche-tech .product-features .data-sheet { list-style: none; margin: 0; padding: 0; }
.ro-fiche-tech .product-reference .label,
.ro-fiche-tech .product-reference label,
.ro-fiche-tech .product-features .data-sheet li .label {
  margin: 0; padding: 10px 14px; width: auto; background: #f1f5f4;
  color: #1d2b2a; font-size: 14px; font-weight: 700;
}
.ro-fiche-tech .product-reference > span,
.ro-fiche-tech .product-features .data-sheet li .value {
  margin: 0; padding: 10px 14px; width: auto; color: #333; font-size: 14px;
}

.ro-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ro-doc {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid #dfe6e4; border-radius: 6px; background: #f6f9f8;
}
.ro-doc-icone { flex: none; color: #4C7777; }
.ro-doc-texte { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ro-doc-nom { color: #222; font-weight: 600; }
.ro-doc-desc { color: #666; font-size: 13px; }
.ro-doc-lien {
  flex: none; padding: 7px 14px; border: 1px solid #4C7777; border-radius: 4px;
  color: #4C7777; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ro-doc-lien:hover { background: #4C7777; color: #fff; }
@media (max-width: 767.98px) {
  .ro-onglets a { padding: 12px 14px; font-size: 13px; }
  .ro-panneau { padding: 20px 16px; }
  .ro-panneau-titre { font-size: 24px; }
  .ro-fiche-tech .product-reference,
  .ro-fiche-tech .product-features .data-sheet li { grid-template-columns: minmax(120px, 45%) 1fr; }
}
@media (max-width: 575.98px) {
  .ro-doc { flex-wrap: wrap; }
  .ro-doc-lien { width: 100%; text-align: center; }
}

/* ---------- Personnalisation (13/11/2026) ---------- */
/* Les réponses sont des codes courts (A, B, 3…) : une ligne par champ, libellé à gauche, case à droite. */
.ro-perso .product-customization-inner { padding: 0; border: 0; background: none; }
.ro-perso .product-customization-header .h5 { margin-bottom: 4px; }
.ro-perso-aide { margin: 0 0 10px; color: #666; font-size: 13px; line-height: 1.5; }
.ro-perso form { display: grid; gap: 12px; }
.ro-perso-groupe { margin: 0; padding: 10px 0 0; border: 0; border-top: 1px solid #e3e8e6; min-width: 0; }
.ro-perso-legende {
  float: none; width: auto; margin: 0 0 4px; padding: 0; border: 0;
  color: #222; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.ro-perso-champs { display: grid; gap: 6px; }
.ro-perso .ro-perso-champ { display: flex; align-items: center; gap: 12px; margin: 0; min-width: 0; }
.ro-perso .ro-perso-champ label { flex: 1; min-width: 0; margin: 0; color: #444; font-size: 13px; line-height: 1.35; }
.ro-perso .ro-perso-champ .input-wrapper { flex: none; width: 120px; }
.ro-perso .ro-perso-champ .form-control { height: 34px; padding: 4px 10px; font-size: 14px; background: #fff; }
.ro-perso .ro-perso-champ .custom-file { width: 100%; }
.ro-perso .save-customization-button { margin: 0; }
.ro-perso .ro-perso-enregistrer { width: 100%; text-transform: none; }
.ro-perso .ro-perso-legende { color: #4C7777; }
.ro-perso .btn-primary.ro-perso-enregistrer { background: #fff; border: 1px solid #4C7777; color: #4C7777; font-weight: 700; }
.ro-perso .btn-primary.ro-perso-enregistrer:hover { background: #4C7777; color: #fff; }

/* ---------- Contraste et couleur (13/11/2026, Guillaume : « le site était déjà terne, nos modifs l'accentuent ») ----------
   Le thème écrit tout en gris #666 : textes plus foncés, titre et prix plus marqués, vert du site sur les actions. */
.page-product .product_title { color: #1d2b2a; font-size: 30px; line-height: 1.1; }
.page-product .ro-resume > .product-description { color: #333; font-size: 15.5px; }
.page-product .ro-resume > .product-description.is-coupe::after { height: 1.8em; }
.ro-mesure { background: #e6f0ef; border-color: #c4dbd8; color: #2a4b4b; }
.page-product .product-prices .current-price-display { color: #1d2b2a; font-size: 32px; font-weight: 700; }
.page-product .product-prices .ro-prix-taxe { color: #4C7777; font-size: 16px; font-weight: 700; }
.page-product .product-actions .btn-primary.ro-panier-fiche { background: #4C7777; border-color: #4C7777; color: #fff; }
.page-product .product-actions .btn-primary.ro-panier-fiche:hover,
.page-product .product-actions .btn-primary.ro-panier-fiche:focus { background: #3a5e5e; border-color: #3a5e5e; color: #fff; }
.page-product .product-actions .btn-secondary.ro-devis-fiche { border-color: #4C7777; color: #4C7777; }
.page-product .product-actions .btn-secondary.ro-devis-fiche:hover { background: #4C7777; color: #fff; }
.page-product .blockreassurance_product .block-title { color: #333 !important; }
.page-product .ro-fiche-desc .rte-content,
.page-product .product-information { color: #333; }

/* ---------- Fenêtre « Choisir une option » des listes (16/11/2026) ----------
   Même galerie que la fiche (gabarit enfant catalog/_partials/quickview.tpl), sans « Agrandir ». */
.quickview .ro-galerie .ro-galerie-agrandir,
.quickview .ro-galerie .ro-galerie-slide.is-active .ro-galerie-agrandir { display: none; }
.quickview .ro-galerie-slide .easyzoom > a { cursor: default; }
.quickview .ro-galerie-photo { max-height: none; border: 0; }
.quickview .product_title { margin-bottom: 4px; }
.quickview .ro-qv-fiche { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: #4C7777; text-decoration: underline; text-underline-offset: 3px; }
.quickview .ro-qv-fiche:hover, .quickview .ro-qv-fiche:focus { color: #2f4c4c; background: none; }
.quickview .rofiche-download { display: none; }
