/* ==========================================================================
   RDesign — feuille de style unique
   Mobile d'abord. Aucune dépendance, aucun framework.
   ========================================================================== */

:root{
  /* Bleu de marque RDesign : #18A8E8.
     Il est trop clair pour porter du texte blanc (contraste 2,69 sur blanc),
     on le réserve donc aux accents et on utilise --rd-blue pour les actions. */
  --rd-brand:#18A8E8;
  --rd-blue:#0F7CB0;        /* boutons, liens — contraste 4,64 : conforme AA */
  --rd-blue-dark:#0A5A80;
  --rd-blue-deep:#0C4A6B;
  --rd-tint:#E7F4FB;

  --rd-bg:#FBFAF8;
  --rd-bg-alt:#EDF4F9;
  --rd-sand:#D9E8F2;
  --rd-ink:#131B22;
  --rd-ink-2:#44535F;
  --rd-ink-3:#5F6C76;   /* 5,4:1 sur blanc — conforme AA */
  --rd-ink-4:#7A8791;   /* décoratif uniquement, jamais pour du texte */
  --rd-line:#DCE6ED;
  --rd-ok:#1F7A55;
  --rd-star:#E0A83C;        /* convention universelle : on ne la bleuit pas */

  --rd-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --rd-disp:'Bricolage Grotesque',var(--rd-sans);
  --rd-r:14px;
  --rd-r-sm:9px;
  --rd-max:1300px;
  --rd-gut:20px;
}

*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:var(--rd-sans);background:var(--rd-bg);color:var(--rd-ink);
  line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--rd-disp);letter-spacing:-.03em;line-height:1.1;margin:0 0 .4em;font-weight:600}
p{margin:0 0 1em}
ul{margin:0;padding:0}

.rd-wrap{max-width:var(--rd-max);margin-inline:auto;padding-inline:var(--rd-gut)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.rd-skip{position:absolute;left:-9999px;top:0;z-index:999;background:var(--rd-ink);color:#fff;padding:12px 20px}
.rd-skip:focus{left:0}
:focus-visible{outline:2px solid var(--rd-blue);outline-offset:2px;border-radius:4px}

/* --- Boutons ------------------------------------------------------------ */
.rd-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce .button{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:48px;padding:14px 26px;border:0;border-radius:100px;cursor:pointer;
  font-family:var(--rd-sans);font-size:15px;font-weight:650;line-height:1.2;
  text-align:center;transition:background-color .18s,transform .18s,color .18s}
.rd-btn--primary,.woocommerce a.button.alt,.woocommerce button.button.alt,
.woocommerce #respond input#submit,.woocommerce .single_add_to_cart_button{
  background:var(--rd-blue);color:#fff}
.rd-btn--primary:hover,.woocommerce .single_add_to_cart_button:hover{background:var(--rd-blue-dark);color:#fff}
.rd-btn--light{background:#fff;color:var(--rd-ink)}
.rd-btn--light:hover{background:var(--rd-bg-alt)}
.rd-btn--ghost{background:transparent;color:var(--rd-ink);box-shadow:inset 0 0 0 1.5px var(--rd-ink)}
.rd-btn--ghost:hover{background:var(--rd-ink);color:#fff}
.rd-btn--dark{background:var(--rd-ink);color:#fff}
.rd-btn--dark:hover{background:#26333D}

/* --- Bandeau promo ------------------------------------------------------ */
.rd-promo{background:linear-gradient(90deg,var(--rd-blue-dark),var(--rd-blue));color:#fff;
  text-align:center;font-size:13px;font-weight:550;padding:10px 14px;line-height:1.45}
.rd-promo a{text-decoration:underline}

/* --- En-tête ------------------------------------------------------------ */
.rd-header{position:sticky;top:0;z-index:90;background:var(--rd-bg);border-bottom:1px solid var(--rd-line)}
.rd-header__inner{position:relative}
.rd-header__inner{display:flex;align-items:center;gap:16px;min-height:68px}
.rd-logo__text{font-family:var(--rd-disp);font-size:24px;font-weight:700;letter-spacing:-.04em;white-space:nowrap}
.rd-logo__text em{font-style:normal;color:var(--rd-blue)}
.rd-logo img{max-height:44px;width:auto}
.rd-nav{display:none;flex:1}
.rd-nav__list{display:flex;gap:4px;list-style:none}
.rd-nav__list a{display:block;padding:9px 14px;border-radius:100px;font-size:15px;font-weight:550}
.rd-nav__list a:hover{background:var(--rd-bg-alt)}
.rd-search{display:none;position:relative;flex:1;max-width:280px}
.rd-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);opacity:.45;pointer-events:none}
.rd-search input[type=search]{width:100%;height:46px;border:0;background:var(--rd-bg-alt);
  border-radius:100px;padding:0 16px 0 44px;font-family:var(--rd-sans);font-size:15px;color:var(--rd-ink)}
.rd-header__actions{display:flex;gap:4px;margin-left:auto}
.rd-header__actions a{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%}
.rd-header__actions a:hover{background:var(--rd-bg-alt)}
.rd-cart__count{position:absolute;top:3px;right:2px;min-width:20px;height:20px;padding:0 5px;
  background:var(--rd-blue);color:#fff;border-radius:100px;font-size:11px;font-weight:700;
  display:grid;place-items:center;font-variant-numeric:tabular-nums}

/* --- Menu et recherche mobiles ------------------------------------------ */
.rd-burger{display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;border:0;background:transparent;border-radius:50%;cursor:pointer;
  color:var(--rd-ink);flex:none}
.rd-burger:hover{background:var(--rd-bg-alt)}
.rd-burger span{position:relative;display:block;width:20px;height:2px;background:currentColor;
  border-radius:2px;transition:transform .25s,background-color .1s}
.rd-burger span::before,.rd-burger span::after{content:'';position:absolute;left:0;width:20px;
  height:2px;background:currentColor;border-radius:2px;transition:transform .25s,top .25s}
.rd-burger span::before{top:-6px}
.rd-burger span::after{top:6px}
.rd-header.is-menu-open .rd-burger span{background:transparent}
.rd-header.is-menu-open .rd-burger span::before{top:0;transform:rotate(45deg)}
.rd-header.is-menu-open .rd-burger span::after{top:0;transform:rotate(-45deg)}

.rd-header.is-menu-open .rd-nav,
.rd-header.is-search-open .rd-search{display:block}
.rd-header.is-menu-open .rd-nav{position:absolute;left:0;right:0;top:100%;background:var(--rd-bg);
  border-bottom:1px solid var(--rd-line);box-shadow:0 18px 30px rgba(19,27,34,.1);
  padding:8px var(--rd-gut) 16px;max-height:calc(100vh - 68px);overflow-y:auto;z-index:95}
.rd-header.is-menu-open .rd-nav__list{flex-direction:column;gap:0}
.rd-header.is-menu-open .rd-nav__list a{padding:14px 6px;border-radius:0;font-size:16px;
  border-bottom:1px solid var(--rd-line)}
.rd-header.is-search-open .rd-search{position:absolute;left:0;right:0;top:100%;
  max-width:none;background:var(--rd-bg);padding:12px var(--rd-gut) 16px;
  border-bottom:1px solid var(--rd-line);z-index:95}
.rd-header{position:sticky}

/* --- Hero --------------------------------------------------------------- */
.rd-hero{position:relative;background:var(--rd-sand) var(--rd-hero,none) center/cover no-repeat;
  color:#fff;overflow:hidden}
.rd-hero::after{content:'';position:absolute;inset:0;
  background:linear-gradient(75deg,rgba(10,26,36,.9) 6%,rgba(10,26,36,.55) 55%,rgba(10,26,36,.2) 100%)}
.rd-hero__inner{position:relative;z-index:2;padding-block:64px;max-width:620px}
.rd-hero h1{font-size:clamp(30px,7vw,52px);margin-bottom:14px}
.rd-hero__lede{font-size:16px;color:rgba(255,255,255,.9);margin-bottom:26px;max-width:46ch}
.rd-hero__pill{margin:0 0 18px}
.rd-hero__cta{display:flex;gap:10px;flex-wrap:wrap;margin:0}

/* --- Statut magasin ----------------------------------------------------- */
.rd-status{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;
  color:var(--rd-ok)}
.rd-status.is-closed{color:var(--rd-ink-3)}
.rd-status--hero{background:rgba(255,255,255,.15);backdrop-filter:blur(8px);
  border-radius:100px;padding:8px 16px;color:#fff}
.rd-status--hero.is-closed{color:rgba(255,255,255,.8)}
.rd-dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.rd-dot--off{background:#B6C0C8}

/* --- Réassurance -------------------------------------------------------- */
.rd-trust{background:var(--rd-bg-alt);border-bottom:1px solid var(--rd-line);padding:20px 0}
.rd-trust__grid{display:grid;gap:10px}
.rd-trust__item{display:flex;gap:13px;align-items:flex-start;background:#fff;
  border:1px solid var(--rd-line);border-radius:var(--rd-r-sm);padding:16px}
.rd-trust__icon{flex:none;width:42px;height:42px;border-radius:11px;background:var(--rd-tint);
  color:var(--rd-blue);display:grid;place-items:center}
.rd-trust__item h3{font-family:var(--rd-sans);font-size:15px;font-weight:650;margin:0 0 2px;letter-spacing:-.01em}
.rd-trust__item p{font-size:13.5px;color:var(--rd-ink-3);margin:0;line-height:1.45}

/* --- Sections ----------------------------------------------------------- */
.rd-section{padding:48px 0}
.rd-section--tight{padding-top:0}
.rd-section__head{display:flex;align-items:flex-end;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin-bottom:24px}
.rd-section__head h2{font-size:clamp(24px,5vw,36px);margin:0}
.rd-section__head p{color:var(--rd-ink-2);font-size:15px;margin:6px 0 0}
.rd-more{color:var(--rd-blue);font-weight:650;font-size:15px;
  display:inline-flex;align-items:center;min-height:44px}
.rd-legal{font-size:12.5px;color:var(--rd-ink-3);margin-top:16px;line-height:1.5}

/* --- Pièces ------------------------------------------------------------- */
.rd-rooms{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.rd-room{position:relative;border-radius:var(--rd-r);overflow:hidden;
  aspect-ratio:3/4;background:var(--rd-sand);display:block}
.rd-room img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.rd-room:hover img{transform:scale(1.06)}
.rd-room::after{content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(10,26,36,.8),transparent 58%)}
.rd-room__label{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;color:#fff;display:block}
.rd-room__label strong{display:block;font-family:var(--rd-disp);font-size:18px;letter-spacing:-.02em}
.rd-room__label em{font-style:normal;font-size:13px;opacity:.85}

/* --- Grille produits ----------------------------------------------------
   Les sélecteurs ne sont PAS préfixés par .woocommerce : cette classe n'est
   ajoutée au <body> que sur les pages boutique, or la grille apparaît aussi
   sur la page d'accueil.
   ----------------------------------------------------------------------- */
ul.products,.rd-grid{display:grid;grid-template-columns:repeat(2,1fr);
  gap:14px;list-style:none;margin:0;padding:0}
ul.products li.product,.rd-grid li.product{
  position:relative;background:#fff;border:1px solid var(--rd-line);border-radius:var(--rd-r);
  overflow:hidden;display:flex;flex-direction:column;margin:0;width:auto;float:none;
  transition:box-shadow .22s,transform .22s;padding:0}
ul.products li.product:hover{box-shadow:0 14px 34px rgba(19,27,34,.1);transform:translateY(-2px)}

/* Le lien produit enveloppe image + titre + note + prix : c'est lui qui
   doit porter la gouttière, sinon le texte touche la bordure. */
ul.products li.product .woocommerce-loop-product__link{display:block;padding:0 0 8px}
ul.products li.product img{margin:0;border-radius:0;aspect-ratio:1/1;object-fit:cover;width:100%}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product .star-rating,
ul.products li.product .rd-pay{padding-inline:14px}

ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--rd-sans);font-size:15px;font-weight:650;letter-spacing:-.015em;margin:10px 0 5px}
ul.products li.product .price{color:var(--rd-ink);font-size:18px;font-weight:750;
  letter-spacing:-.02em;margin:0 0 3px;display:block}
ul.products li.product .price del{color:var(--rd-ink-3);font-size:14px;font-weight:400;margin-right:7px}
ul.products li.product .price ins{text-decoration:none;font-weight:750}
ul.products li.product .star-rating{color:var(--rd-star);font-size:12px;margin:0 0 6px}
span.onsale{background:var(--rd-blue);color:#fff;border-radius:100px;
  font-size:12px;font-weight:700;padding:6px 12px;min-height:0;min-width:0;line-height:1;
  top:12px;left:12px;right:auto;margin:0;position:absolute;z-index:3}

.rd-pay{font-size:13px;color:var(--rd-ok);font-weight:600;margin:0 0 8px;display:block}
.rd-pay--compact{font-size:12.5px}
.rd-pay__credit{display:block;color:var(--rd-ink-3);font-weight:500}
.rd-pay__legal{font-size:12.5px;color:var(--rd-ink-3);font-weight:400;line-height:1.5;margin:8px 0 0}
.rd-card__showroom{display:inline-block;margin:0 14px 10px;background:var(--rd-tint);
  color:var(--rd-blue-dark);font-size:12.5px;font-weight:650;padding:5px 11px;border-radius:100px}

ul.products li.product .button,.rd-card__cart{
  display:inline-flex;align-items:center;justify-content:center;
  margin:auto 14px 14px;width:calc(100% - 28px);min-height:48px;padding:13px 20px;
  border:0;border-radius:100px;font-family:var(--rd-sans);font-size:14.5px;font-weight:650;
  background:var(--rd-ink);color:#fff;transition:background-color .18s}
ul.products li.product .button:hover,.rd-card__cart:hover{background:var(--rd-blue);color:#fff}
ul.products li.product .added_to_cart{display:none}

/* --- Fiche produit ------------------------------------------------------ */
.woocommerce div.product .product_title{font-family:var(--rd-disp);font-size:clamp(24px,5vw,34px)}
.woocommerce div.product p.price,.woocommerce div.product span.price{
  color:var(--rd-ink);font-size:28px;font-weight:750;letter-spacing:-.03em}
.woocommerce div.product .stock{color:var(--rd-ok);font-weight:600}
.rd-delivery{list-style:none;margin:20px 0;padding:0;border:1px solid var(--rd-line);
  border-radius:var(--rd-r-sm);background:#fff;overflow:hidden}
.rd-delivery li{display:flex;flex-wrap:wrap;gap:4px 8px;padding:13px 16px;font-size:14px;
  color:var(--rd-ink-2);border-bottom:1px solid var(--rd-line);line-height:1.45}
.rd-delivery li:last-child{border-bottom:0}
.rd-delivery strong{color:var(--rd-ink);font-weight:650;min-width:110px}
.rd-delivery li.is-ok strong{color:var(--rd-ok)}
.rd-delivery li.is-showroom{background:var(--rd-tint)}
.rd-delivery li.is-showroom strong{color:var(--rd-blue-dark)}
.rd-breadcrumb{font-size:13.5px;color:var(--rd-ink-3);padding:16px 0}
.rd-breadcrumb a{color:var(--rd-blue)}
.rd-crumb-sep{margin:0 7px;opacity:.5}

/* --- Magasins ----------------------------------------------------------- */
.rd-stores{display:grid;gap:16px}
.rd-store{background:#fff;border:1px solid var(--rd-line);border-radius:var(--rd-r);overflow:hidden}
.rd-store__body{padding:22px}
.rd-store h3{font-size:21px;margin:0 0 6px}
.rd-store__addr{font-size:14.5px;color:var(--rd-ink-2);margin:0 0 14px}
.rd-store__meta{display:flex;gap:16px;flex-wrap:wrap;align-items:center;font-size:14px;margin:14px 0}
.rd-store__meta a{color:var(--rd-blue);font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.rd-store__cta{display:flex;gap:9px;flex-wrap:wrap;margin:0}
.rd-store__cta .rd-btn{flex:1;min-width:140px}
.rd-hours{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 14px}
.rd-hours th{text-align:left;font-weight:550;color:var(--rd-ink-2);padding:9px 0;
  border-bottom:1px solid var(--rd-line)}
.rd-hours td{text-align:right;color:var(--rd-ink);padding:9px 0;
  border-bottom:1px solid var(--rd-line);font-variant-numeric:tabular-nums}
.rd-hours tr:last-child th,.rd-hours tr:last-child td{border-bottom:0}
.rd-hours tr.is-now th,.rd-hours tr.is-now td{color:var(--rd-blue-dark);font-weight:700}

/* --- Tunnel ------------------------------------------------------------- */
.rd-checkout-trust{list-style:none;margin:0 0 18px;padding:16px;background:var(--rd-tint);
  border-radius:var(--rd-r-sm);font-size:14px;color:var(--rd-blue-deep)}
.rd-checkout-trust li{padding:4px 0 4px 22px;position:relative}
.rd-checkout-trust li::before{content:'';position:absolute;left:2px;top:11px;width:9px;height:5px;
  border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}

/* --- Contenu ------------------------------------------------------------ */
.rd-page{padding-block:36px}
.rd-page__head h1{font-size:clamp(26px,6vw,40px)}
.rd-prose{max-width:70ch;font-size:16.5px;line-height:1.75;color:var(--rd-ink-2)}
.rd-prose h2,.rd-prose h3{color:var(--rd-ink);margin-top:1.6em}
.rd-prose a{color:var(--rd-blue);text-decoration:underline}
.rd-posts{display:grid;gap:22px}
.rd-post{background:#fff;border:1px solid var(--rd-line);border-radius:var(--rd-r);overflow:hidden}
.rd-post__body{padding:20px}
.rd-empty{text-align:center;padding:64px 0;max-width:52ch;margin-inline:auto}
.rd-empty p{color:var(--rd-ink-2)}

/* --- Pied de page ------------------------------------------------------- */
.rd-footer{background:var(--rd-ink);color:#B9C3CC;padding:44px 0 0;margin-top:36px}
.rd-footer__grid{display:grid;gap:32px;padding-bottom:32px}
.rd-footer .rd-logo__text{color:#fff}
.rd-footer .rd-logo__text em{color:#5FC2F0}
.rd-footer__brand p{font-size:14px;line-height:1.7;color:#8D99A4;margin:12px 0 16px;max-width:34ch}
.rd-footer h2{font-size:14px;font-weight:700;color:#fff;font-family:var(--rd-sans);
  letter-spacing:0;margin:0 0 10px}
.rd-footer__list{list-style:none}
.rd-footer__list a{display:block;padding:11px 0;font-size:14.5px;color:#8D99A4}
.rd-footer__list a:hover{color:#fff}
.rd-pay-logos{display:flex;gap:7px;flex-wrap:wrap}
.rd-pay-logos span{background:#fff;color:var(--rd-ink);font-size:11.5px;font-weight:700;
  padding:6px 10px;border-radius:5px}
.rd-footer .rd-hours{margin-bottom:10px}
.rd-footer .rd-hours th{color:#8D99A4;border-color:#2A3742}
.rd-footer .rd-hours td{color:#D6DDE3;border-color:#2A3742}
.rd-footer .rd-hours tr.is-now th,.rd-footer .rd-hours tr.is-now td{color:#5FC2F0}
.rd-footer__stores a{color:#5FC2F0;font-weight:600;display:inline-flex;min-height:44px;align-items:center}
.rd-footer__bottom{border-top:1px solid #2A3742;padding:18px 0;display:flex;
  justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:#77838D}
.rd-footer__bottom a{margin-left:14px}

/* --- Barre mobile ------------------------------------------------------- */
.rd-mbar{position:fixed;left:0;right:0;bottom:0;z-index:120;
  display:grid;grid-template-columns:repeat(4,1fr);
  background:rgba(255,255,255,.97);backdrop-filter:blur(14px);
  border-top:1px solid var(--rd-line);
  padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.rd-mbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:54px;font-size:11.5px;font-weight:600;color:var(--rd-ink-2);border-radius:10px}
.rd-mbar a.is-cta{color:var(--rd-blue-dark)}
.rd-mbar a:active{background:var(--rd-bg-alt)}
.rd-mbar svg{width:21px;height:21px}
body{padding-bottom:76px}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (min-width:768px){
  :root{--rd-gut:28px}
  .rd-section{padding:64px 0}
  .rd-trust__grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .rd-rooms{grid-template-columns:repeat(3,1fr);gap:14px}
  .woocommerce ul.products,.rd-grid{grid-template-columns:repeat(3,1fr);gap:18px}
  .rd-stores{grid-template-columns:repeat(2,1fr);gap:20px}
  .rd-footer__grid{grid-template-columns:repeat(2,1fr);gap:36px}
  .rd-hero__inner{padding-block:96px}
  .rd-search{display:block}
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width:1024px){
  .rd-nav{display:block}
  .rd-burger{display:none}
  .rd-mbar{display:none}
  body{padding-bottom:0}
  .rd-header__inner{min-height:76px;gap:26px}
  .rd-header__actions{margin-left:0}
  .rd-section{padding:84px 0}
  .rd-trust{padding:26px 0}
  .rd-trust__grid{grid-template-columns:repeat(4,1fr)}
  .rd-rooms{grid-template-columns:repeat(5,1fr)}
  .woocommerce ul.products,.rd-grid{grid-template-columns:repeat(4,1fr);gap:20px}
  .rd-footer__grid{grid-template-columns:1.7fr 1fr 1fr 1.1fr;gap:44px}
  .rd-hero__inner{padding-block:120px}
  .rd-page{padding-block:52px}
}

/* ==========================================================================
   Confort de lecture et préférences système
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
}

@media print{
  .rd-header,.rd-mbar,.rd-promo,.rd-footer{display:none}
}
