/* =====================================================================
   Recycle Office - header et footer sans Elementor (28/10/2026)
   Valeurs reprises de l'ancien header/footer Elementor (blocs 18, 19, 20).
   Ordinateur : au-dessus de 1024 px. Mobile et tablette : 1024 px et moins.
   ===================================================================== */

.ro-only-mobile { display: none; }
@media (max-width: 1024px) {
    .ro-only-desktop { display: none; }
    .ro-only-mobile { display: block; }
}

/* ---------- Header : éléments communs ---------- */
.ro-header { background: #fff; position: relative; z-index: 1030; }
.ro-hdr-wrap {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ro-header a { text-decoration: none; }
.ro-hdr-logo img { display: block; height: auto; max-width: 100%; }

.ro-header .btn-toggle,
.ro-header-sticky .btn-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0c0c0c;
    font-family: Montserrat, sans-serif;
}
.ro-header .btn-toggle:hover,
.ro-header-sticky .btn-toggle:hover { color: rgba(12, 12, 12, .75); }

.ro-hdr-account .btn-toggle-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
}
.ro-hdr-account i { display: none; font-size: 24px; }

.ro-hdr-cart i { font-size: 24px; line-height: 24px; }
.ro-hdr-cart .cart-products-count {
    position: absolute;
    top: 0;
    right: -4px;
    min-width: 15px;
    height: 15px;
    padding: 0 2px;
    border-radius: 50%;
    background: #0c0c0c;
    color: #fff;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
}

.ro-hdr-icon { color: #0c0c0c; font-size: 24px; line-height: 1; }

/* recherche (mêmes classes que le module de recherche du thème) */
.ro-hdr-search .search_block_top { width: 100%; max-width: 900px; }
.ro-hdr-search .search_block_top .searchbox { border-style: solid; }
.ro-hdr-search .search_block_top .button-search { color: #333; background-color: #fff; }
.ro-hdr-search .search_block_top .button-search:hover { color: #0583cc; }
.ro-hdr-search .search_block_top .input-wrapper .search_query { font-family: Montserrat, sans-serif; }

/* ---------- Header ordinateur ---------- */
.ro-hdr-bar {
    padding: 5px 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ro-hdr-bar .ro-hdr-wrap { min-height: 35px; }
.ro-hdr-contact { display: flex; align-items: center; gap: 60px; }
.ro-hdr-iconlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0c0c0c;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}
.ro-hdr-iconlink i { font-size: 23px; }
.ro-hdr-iconlink:hover { color: rgba(12, 12, 12, .75); }
.ro-hdr-tools { display: flex; align-items: center; gap: 15px; }
.ro-hdr-catalogue {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 13px;
    text-transform: uppercase;
}
.ro-hdr-catalogue:hover { color: rgba(0, 0, 0, .6); }

.ro-hdr-main { padding: 10px 15px; }
.ro-hdr-main .ro-hdr-wrap { justify-content: flex-start; }
.ro-hdr-main .ro-hdr-logo { flex: 0 0 34.7%; display: flex; justify-content: center; }
.ro-hdr-main .ro-hdr-logo img { width: 272px; }
.ro-hdr-main .ro-hdr-search { flex: 0 1 900px; }

.ro-hdr-menu { padding: 0 5px; }
.ro-hdr-menu .container-bitmegamenu { max-width: 1600px; }
.ro-hdr-menu .cbp-horizontal > ul { display: flex; justify-content: center; }
.ro-hdr-menu .cbp-horizontal > ul > li > a {
    font-family: Montserrat, sans-serif;
    color: #0c0c0c;
    padding: 0 50px 0 0;
    margin: 0;
}
.ro-hdr-menu .cbp-horizontal > ul > li:last-child > a { padding-right: 0; }
.ro-hdr-menu .cbp-horizontal > ul > li > a:hover { color: rgba(12, 12, 12, .52); }

/* ---------- Header mobile et tablette ---------- */
.ro-hdr-mobile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 6px;
}
.ro-hdr-mobile-top .ro-hdr-logo { flex: 1 1 auto; min-width: 0; }
.ro-hdr-mobile-top .ro-hdr-logo img { width: 200px; }
.ro-hdr-mobile-top .ro-hdr-account .btn-toggle-text { display: none; }
.ro-hdr-mobile-top .ro-hdr-account i { display: inline-block; font-size: 26px; }
.ro-hdr-mobile-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 10px;
}
.ro-hdr-mobile-bottom .btn-toggle-menu { font-size: 14px; font-weight: 600; text-transform: uppercase; }
.ro-hdr-mobile-bottom .btn-toggle-menu i { font-size: 26px; }
.ro-hdr-mobile-bottom .ro-hdr-search { flex: 1 1 auto; min-width: 0; }

/* ---------- Header collant ---------- */
.ro-header-sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    background: #fff;
    box-shadow: 0 3px 6px rgba(51, 51, 51, .05);
    transform: translateY(-100%);
    pointer-events: none;
    backface-visibility: hidden;
}
body.ro-sticky-on .ro-header-sticky {
    transform: none;
    pointer-events: auto;
    transition: transform .3s ease;
}
.ro-header-sticky .ro-hdr-wrap { padding: 8px 15px; gap: 20px; }
.ro-header-sticky .ro-hdr-logo img { width: 200px; }
.ro-header-sticky .ro-hdr-menu { flex: 1 1 auto; }
.ro-header-sticky .ro-hdr-menu .cbp-horizontal > ul > li > a { padding-right: 30px; }
.ro-header-sticky .ro-hdr-account .btn-toggle-text { display: none; }
.ro-header-sticky .ro-hdr-account i { display: inline-block; }
.ro-hdr-sticky-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}
.ro-hdr-sticky-left,
.ro-hdr-sticky-right { flex: 0 0 25%; display: flex; align-items: center; gap: 12px; }
.ro-hdr-sticky-right { justify-content: flex-end; }
.ro-hdr-sticky-left i { font-size: 26px; }
.ro-hdr-sticky-mobile .ro-hdr-logo { flex: 0 1 50%; display: flex; justify-content: center; }
.ro-hdr-sticky-mobile .ro-hdr-logo img { width: 160px; }

/* ---------- Pied de page (refonte du 02/11/2026, footer.tpl : .ro-pdp-*) ---------- */
.ro-pdp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ro-pdp-reas { border-top: 1px solid #e6e1d4; background: #fff; font-family: Montserrat, sans-serif; }
.ro-pdp-reas .ro-pdp-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.ro-pdp-reas .ro-pdp-wrap > div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #555; }
.ro-pdp-reas i { font-size: 34px; color: #5E7468; }
.ro-pdp-reas strong { display: block; font-size: 14px; color: #333; }
.ro-pdp { background: #99ada1; color: #1f2a24; font-family: Montserrat, sans-serif; }
.ro-pdp a { color: inherit; }
.ro-pdp-main .ro-pdp-wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.ro-pdp p.ro-pdp-titre { margin: 0 0 14px; font-family: "Bebas Neue", sans-serif; font-size: 24px; font-weight: 400; line-height: 1.1; letter-spacing: .3px; color: #1f2a24; }
.ro-pdp ul { list-style: none; margin: 0; padding: 0; }
.ro-pdp li { margin: 0 0 9px; font-size: 14px; }
.ro-pdp li a:hover, .ro-pdp-bas nav a:hover { text-decoration: underline; }
.ro-pdp-marque img { width: 230px; height: auto; }
.ro-pdp-marque p { font-size: 14px; line-height: 1.6; margin: 14px 0 18px; max-width: 320px; }
.ro-pdp-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(31,42,36,.35); border-radius: 50%; font-size: 20px; margin: 0 6px 6px 0; transition: background .2s; }
.ro-pdp-social a:hover { background: rgba(255,255,255,.35); }
.ro-pdp-contact p { margin: 6px 0; font-size: 14px; }
.ro-pdp-tel { display: flex; align-items: center; gap: 10px; }
.ro-pdp-tel > a { font-family: "Bebas Neue", sans-serif; font-size: 32px; line-height: 1; }
.ro-pdp-copier { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(31,42,36,.4); border-radius: 4px; background: transparent; color: #1f2a24; font-size: 17px; cursor: pointer; }
.ro-pdp-copier:hover, .ro-pdp-copier:focus { background: rgba(255,255,255,.35); }
.ro-copier-ok { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); background: #1f2a24; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ro-pdp-copier.is-ok .ro-copier-ok { opacity: 1; }
.ro-pdp-btn { display: inline-block; margin-top: 14px; background: #5E7468; color: #fff !important; font-weight: 700; padding: 12px 22px; border-radius: 4px; font-size: 14px; }
.ro-pdp-btn:hover, .ro-pdp-btn:focus { background: #3f5247; }
.ro-pdp-nl { border-top: 1px solid rgba(31,42,36,.18); }
.ro-pdp-nl .ro-pdp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.ro-pdp-nl p.ro-pdp-titre { margin: 0 0 2px; }
.ro-pdp-nl p { margin: 0; font-size: 13px; }
.ro-pdp-nl .ro-newsletter { flex: 0 1 460px; }
.ro-pdp .ro-newsletter-row { display: flex; }
.ro-pdp .ro-newsletter input[name="email"] { flex: 1; width: auto; height: 46px; padding: 10px 14px; border: 0; border-radius: 0; background: #fff; color: #000; font-size: 14px; }
.ro-pdp .ro-newsletter button { margin: 0; padding: 0 22px; border: 0; border-radius: 0; background: #5E7468; color: #fff; font-family: Montserrat, sans-serif; font-size: 14px; font-weight: 700; line-height: 46px; cursor: pointer; }
.ro-pdp .ro-newsletter button:hover { background: #3f5247; }
.ro-pdp .ro-newsletter .alert { max-width: none; margin: 10px 0 0; }
.ro-pdp-bas { background: #5E7468; color: #fff; font-size: 12.5px; }
.ro-pdp-bas .ro-pdp-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.ro-pdp-bas a { color: #fff; }
.ro-pdp-bas nav a { margin-right: 16px; }
.ro-pdp-paiement { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.ro-pdp-paiement span { font-size: 12px; margin-left: 4px; }
/* Textes du pied de page plus foncés pour la lisibilité (demande de Guillaume, 02/11) */
.ro-pdp, .ro-pdp p, .ro-pdp li, .ro-pdp a, .ro-pdp p.ro-pdp-titre { color: #000; }
.ro-pdp li, .ro-pdp-contact p, .ro-pdp-marque p, .ro-pdp-nl p { font-weight: 500; }
.ro-pdp-social a { border-color: rgba(0,0,0,.55); }
.ro-pdp-copier { border-color: rgba(0,0,0,.55); color: #000; }
.ro-pdp-bas, .ro-pdp-bas a, .ro-pdp-bas span { color: #fff; font-weight: 500; }
.ro-pdp-reas .ro-pdp-wrap > div { color: #222; }
/* Survol des liens du pied de page : couleur gardée (le thème les rendait invisibles), soulignés (02/11) */
.ro-pdp a:hover, .ro-pdp a:focus { color: #000; text-decoration: underline; }
.ro-pdp-bas a:hover, .ro-pdp-bas a:focus { color: #fff !important; text-decoration: underline; }
.ro-pdp-btn:hover, .ro-pdp-btn:focus { color: #fff !important; text-decoration: none; }
.ro-pdp-social a:hover, .ro-pdp-copier:hover, .ro-pdp-tel > a:hover { text-decoration: none; }
.ro-pdp p.ro-pdp-titre a { color: inherit; }
/* Adresse : boutons copier et Google Maps */
.ro-pdp-adresse { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; font-size: 14px; font-weight: 500; }
.ro-pdp-carte { color: #000 !important; font-size: 18px; }
/* Première colonne aérée (02/11) */
.ro-pdp-marque { padding-right: 20px; }
.ro-pdp-marque img { margin: 4px 0 6px; }
.ro-pdp-marque p { line-height: 1.8; margin: 18px 0 26px; }
.ro-pdp-social { display: flex; gap: 12px; flex-wrap: wrap; }
.ro-pdp-social a { width: 42px; height: 42px; margin: 0; }
@media (max-width: 767px) { .ro-pdp-marque { padding-right: 0; } }
/* Bouton « Contactez-nous » plus simple : contour noir, sans fond (02/11) */
.ro-pdp .ro-pdp-btn { background: transparent; color: #000 !important; border: 2px solid #000; padding: 10px 20px; }
.ro-pdp .ro-pdp-btn:hover, .ro-pdp .ro-pdp-btn:focus { background: #000; color: #fff !important; }
.ro-pdp .ro-pdp-btn i { margin-left: 6px; }
/* ---------- Page contact (02/11/2026, contact.tpl + contactform du thème enfant : .ro-contact) ---------- */
.ro-contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; font-family: Montserrat, sans-serif; }
.ro-contact-intro { font-size: 15px; color: #333; margin: 0 0 14px; }
.ro-contact .contact-form { margin: 0; }
.ro-contact .contact-form input[type=submit] { background: #5E7468; border-color: #5E7468; color: #fff; font-weight: 700; padding: 12px 28px; border-radius: 4px; }
.ro-contact .contact-form input[type=submit]:hover { background: #3f5247; border-color: #3f5247; }
.ro-contact-infos { background: #EAE7DC; padding: 24px; }
.ro-contact-titre { margin: 0 0 16px; font-family: "Bebas Neue", sans-serif; font-size: 28px; line-height: 1.1; color: #000; }
.ro-contact-ligne { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #d8d2c2; }
.ro-contact-ligne > i { font-size: 26px; color: #5E7468; flex: 0 0 26px; }
.ro-contact-lib { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #5E7468; margin-bottom: 3px; }
.ro-contact-val { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: #000; }
.ro-contact-val a { color: #000; }
.ro-contact-val a:hover { text-decoration: underline; }
.ro-contact-tel { font-family: "Bebas Neue", sans-serif; font-size: 30px; line-height: 1; }
.ro-contact .ro-pdp-copier { border-color: rgba(0,0,0,.45); color: #000; }
.ro-contact .ro-pdp-copier.is-ok .ro-copier-ok { opacity: 1; }
.ro-contact-devis { margin-top: 12px; padding-top: 16px; border-top: 1px solid #d8d2c2; font-size: 14px; color: #333; }
.ro-contact-devis strong { display: block; font-size: 15px; color: #000; }
.ro-contact-devis p { margin: 4px 0 10px; }
.ro-contact-devis a { font-weight: 700; color: #5E7468; text-decoration: underline; }
@media (max-width: 900px) { .ro-contact { grid-template-columns: 1fr; } }
/* Bulle « Copié » au-dessus du bouton (à droite, elle débordait de l'écran sur mobile) (02/11) */
.ro-copier-ok { left: 50%; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); }

.ro-pdp-reas strong { color: #000; }
@media (max-width: 1024px) {
    .ro-pdp-main .ro-pdp-wrap { grid-template-columns: 1fr 1fr; gap: 28px; }
    .ro-pdp-reas .ro-pdp-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .ro-pdp-wrap { padding: 0 16px; }
    .ro-pdp-main .ro-pdp-wrap { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 32px; padding-bottom: 24px; }
    .ro-pdp-marque, .ro-pdp-contact { grid-column: 1 / -1; }
    .ro-pdp-reas .ro-pdp-wrap { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
    .ro-pdp-reas i { font-size: 28px; }
    .ro-pdp-nl .ro-newsletter { flex: 1 1 100%; }
    .ro-pdp-bas .ro-pdp-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Accueil : slider et carrousel (remplacent les widgets Elementor) ---------- */
/* l'ancien réglage Elementor mettait une marge de -37 px sous le slider : il dépassait du bandeau */
.roe-element-d92c57a > .roe-widget-container,
.roe-widget-container:has(> .ro-slider) { margin: 0 !important; }
/* 29/10/2026 : place réservée aux photos (494 x 290) pour que le bandeau ne saute pas quand une photo se charge pour la première fois */
.ro-slider { position: relative; overflow: hidden; aspect-ratio: 494 / 290; }
.ro-slider .ro-slide { display: none; width: 100%; height: 100%; object-fit: cover; }
.ro-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 24px;
    line-height: 28px;
    cursor: pointer;
}
.ro-slider-arrow:hover { color: rgba(255, 255, 255, .7); }
.ro-slider-prev { left: 0; }
.ro-slider-next { right: 0; }
.ro-slider .ro-slide.is-active { display: block; animation: roFade .6s ease; }
@keyframes roFade { from { opacity: 0; } to { opacity: 1; } }
.ro-products-carousel .product_list.slick-initialized { position: relative; }
.ro-products-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 35px;
    height: 35px;
    margin-top: -17px;
    color: #333;
    font-size: 38px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
}
.ro-products-carousel .slick-arrow i { font-size: 38px; }
.ro-products-carousel .slick-arrow:hover { color: #0583cc; }
.ro-products-carousel .slick-prev-arrow { left: 0; }
.ro-products-carousel .slick-next-arrow { right: 0; }
.ro-products-carousel .product_list:not(.slick-initialized) { display: flex; overflow: hidden; }
.ro-products-carousel .product_list:not(.slick-initialized) > .row_items { flex: 0 0 25%; }

/* Titres Hn (04/11/2026) : le nom des documents joints de la fiche produit est un <p class="h4"> (plus un titre) ; même style que l ancien h4 du thème. */
.product-attachments .attachment > p.h4 { font-weight: 500; font-size: 18px; margin-bottom: 0; }
