/*
  assets/site.css
  ----------------
  Styles communs à toutes les pages du site RachatdOr :
  variables de couleur (thème clair/sombre), reset de base, typographie,
  header, footer, boutons, logo.

  Chaque page garde ses propres styles spécifiques (hero, simulateur,
  tableau des prix, etc.) dans son propre <style>, et charge celui-ci
  en plus via : <link rel="stylesheet" href="assets/site.css">
*/

:root{
  --bg: #0c0a07;
  --bg-rgb: 12,10,7;
  --bg-card: #17140f;
  --bg-card-2: #1d1912;
  --gold: #A89E53;
  --gold-bright: #C6C08F;
  --cream: #ede6d6;
  --muted: #8c8371;
  --line: #2b271e;
  --ok: #7fae8a;
}

html[data-theme="light"]{
  --bg: #ffffff;
  --bg-rgb: 255,255,255;
  --bg-card: #f5f2ea;
  --bg-card-2: #f1ebdc;
  --gold: #7c600e;
  --gold-bright: #C6C08F;
  --cream: #16150f;
  --muted: #6b6b60;
  --line: #e3e3da;
  --ok: #3f7a4d;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--cream);
  font-family:'Manrope', sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  transition:background-color .25s ease, color .25s ease;
}
h1,h2,h3{ font-family:'Archivo Black', sans-serif; text-transform:uppercase; letter-spacing:-0.01em; font-weight:400; }
.mono{ font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 28px; }
main{ padding:5px 0 5px; }
section{ padding:0px 0; }
.eyebrow{
  font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:14px;
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--gold); display:inline-block; }
.hl-gold{ color:var(--gold); }
:focus-visible{ outline:2px solid var(--gold-bright); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* ---------- HEADER ---------- */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(var(--bg-rgb), 0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 28px; max-width:1120px; margin:0 auto;
}
.logo{ display:flex; align-items:center; gap:10px; cursor:pointer; }
.logo-mark{ flex-shrink:0; }
.logo-mark .ring-outer{ fill:none; stroke:var(--gold); stroke-width:1.3; transition:stroke .2s ease; }
.logo-mark .ring-inner{ fill:none; stroke:var(--gold); stroke-width:0.6; opacity:0.45; }
.logo-mark .mono-logo{ font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; font-size:10px; fill:var(--gold-bright); letter-spacing:0.02em; }
.logo:hover .ring-outer{ stroke:var(--gold-bright); }
.logo-text{ font-family:'Archivo Black', sans-serif; text-transform:uppercase; font-size:16px; letter-spacing:-0.01em; color:var(--cream); }
.logo-gold{ color:var(--gold); }

.nav-links{ display:flex; align-items:center; gap:20px; font-size:13.5px; color:var(--muted); }
.nav-links a:hover{ color:var(--gold-bright); }
.nav-cta{ display:flex; align-items:center; gap:16px; }

.nav-dropdown{ position:relative; }
.nav-dropdown-trigger{
  display:flex; align-items:center; gap:5px; background:none; border:0; cursor:pointer;
  font-family:'Manrope', sans-serif; font-size:13.5px; color:var(--muted); padding:0;
}
.nav-dropdown-trigger:hover, .nav-dropdown.open .nav-dropdown-trigger{ color:var(--gold-bright); }
.nav-dropdown-trigger svg{ transition:transform .15s ease; }
.nav-dropdown.open .nav-dropdown-trigger svg{ transform:rotate(180deg); }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%);
  background:var(--bg-card); border:1px solid var(--line); border-radius:10px;
  padding:8px; min-width:170px; display:none; flex-direction:column; gap:2px;
  box-shadow:0 12px 28px rgba(0,0,0,0.28); z-index:60;
}
.nav-dropdown.open .nav-dropdown-menu{ display:flex; }
.nav-dropdown-menu a{ padding:9px 12px; border-radius:6px; font-size:13.5px; color:var(--muted); }
.nav-dropdown-menu a:hover{ background:rgba(var(--bg-rgb),0.5); color:var(--gold-bright); }

.nav-hamburger{
  display:none; width:38px; height:38px; align-items:center; justify-content:center;
  background:transparent; border:1px solid var(--line); border-radius:8px;
  color:var(--cream); cursor:pointer; flex-shrink:0;
}
.nav-hamburger svg{ width:18px; height:18px; }
.nav-hamburger .icon-close{ display:none; }
.nav-hamburger.open .icon-menu{ display:none; }
.nav-hamburger.open .icon-close{ display:block; }

.mobile-menu-backdrop{
  position:fixed; left:0; right:0; bottom:0; top:0; background:rgba(0,0,0,0.55);
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease, visibility 0s linear .25s; z-index:80;
}
.mobile-menu-backdrop.open{ opacity:1; visibility:visible; pointer-events:auto; transition:opacity .25s ease, visibility 0s linear 0s; }
.mobile-menu{
  position:fixed; top:0; left:0; right:0; max-height:100vh;
  background:var(--bg); border-bottom:1px solid var(--line);
  transform:translateY(-100%); visibility:hidden;
  transition:transform .28s ease, visibility 0s linear .28s;
  z-index:90; padding:86px 28px 32px; overflow-y:auto;
  display:flex; flex-direction:column; gap:2px;
  box-shadow:0 18px 34px rgba(0,0,0,0.28);
}
.mobile-menu.open{
  transform:translateY(0); visibility:visible;
  transition:transform .28s ease, visibility 0s linear 0s;
}
.mobile-menu-links{ display:flex; flex-direction:column; }
.mobile-menu-links a{
  font-size:16px; color:var(--cream); padding:15px 2px;
  border-bottom:1px solid var(--line);
}
.mobile-menu-links a:hover{ color:var(--gold-bright); }

@media (max-width:860px){
  .nav-hamburger{ display:flex; }
  .flink-desktop{ display:none; }
}
@media (min-width:861px){
  .mobile-menu, .mobile-menu-backdrop{ display:none; }
}

.theme-toggle{
  width:40px; height:40px; border-radius:50%;
  border:1.5px solid var(--gold); background:rgba(168,158,83,0.14);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold); cursor:pointer; flex-shrink:0;
  transition:border-color .2s ease, color .2s ease, background .2s ease, transform .15s ease;
}
.theme-toggle:hover{ border-color:var(--gold-bright); color:var(--gold-bright); background:rgba(168,158,83,0.22); transform:scale(1.05); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:none; }
html[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
html[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

/* ---------- BOUTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border-radius:2px; font-size:14px; font-weight:600;
  cursor:pointer; border:1px solid transparent; transition:all .2s ease;
}
.btn:disabled{ opacity:0.55; cursor:not-allowed; }
.btn-gold{
  background:
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, #7c6d2e 0%, var(--gold) 30%, var(--gold-bright) 55%, var(--gold) 78%, #7c6d2e 100%);
  color:#ffffff; text-shadow:0 1px 1px rgba(0,0,0,.25);
  border:1px solid rgba(255,248,222,.4);
  box-shadow:0 3px 10px rgba(168,158,83,.4), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 5px rgba(0,0,0,.15);
  position:relative; overflow:hidden;
}
.btn-gold::after{
  content:''; position:absolute; top:0; left:-60%; width:35%; height:100%;
  background:linear-gradient(115deg, transparent, rgba(255,255,255,.6), transparent);
  transform:skewX(-20deg); pointer-events:none;
}
.btn-gold:hover{
  box-shadow:0 5px 16px rgba(168,158,83,.55), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 5px rgba(0,0,0,.15);
  filter:brightness(1.04);
}
.btn-gold:hover::after{ animation:btnGoldShine .85s ease forwards; }
@keyframes btnGoldShine{ to{ left:130%; } }
.btn-outline{ border-color:var(--line); color:var(--cream); background:transparent; }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-bright); }
.btn-pulse{ animation:btnPulse 1.5s ease-in-out infinite; }
@keyframes btnPulse{
  0%, 100%{ box-shadow:0 0 0 0 rgba(168,158,83,0.45); }
  50%{ box-shadow:0 0 0 14px rgba(168,158,83,0); }
}
@media (prefers-reduced-motion: reduce){ .btn-pulse{ animation:none; } }

/* ---------- FOOTER ---------- */
footer{ border-top:1px solid var(--line); padding:44px 0; }
.footer-grid{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; }
footer .fmuted{ font-size:12.5px; color:var(--muted); }
footer .flinks{ display:flex; gap:24px; font-size:12.5px; color:var(--muted); }
footer .flinks a:hover{ color:var(--gold-bright); }

/* ---------- FAQ (accordéon, partagé accueil + pages boutiques) ---------- */
.faq-list{ display:flex; flex-direction:column; margin-top:24px; border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 2px; cursor:pointer; list-style:none;
  font-family:'Manrope', sans-serif; font-weight:600; font-size:15.5px; color:var(--cream);
  transition:color .2s ease;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary:hover{ color:var(--gold-bright); }
.faq-icon{ flex-shrink:0; color:var(--gold); transition:transform .2s ease; }
.faq-item[open] .faq-icon{ transform:rotate(45deg); }
.faq-item p{ padding:0 2px 22px; font-size:14px; color:var(--muted); max-width:68ch; }
@media (max-width:480px){
  .faq-item summary{ font-size:14px; padding:16px 2px; }
}

/* ---------- HERO AVEC PHOTO (pages boutiques) ---------- */
.hero-grid{
  display:grid; grid-template-columns:1.05fr 1fr; gap:48px;
  align-items:center; margin-bottom:8px;
}
.hero-photo{
  border-radius:20px; overflow:hidden; aspect-ratio:16/14;
  border:1px solid var(--line); background:var(--bg-card);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width:480px){
  .hero-photo{ border-radius:14px; }
}

/* ---------- GUIDE : fil d'ariane, sommaire, corps d'article ---------- */
.breadcrumb{ font-size:12.5px; color:var(--muted); margin-bottom:24px; }
.breadcrumb a{ color:var(--muted); }
.breadcrumb a:hover{ color:var(--gold-bright); }

.article-hero{ margin-bottom:8px; }
.article-hero h1{ font-size:clamp(26px,4vw,38px); margin:14px 0 16px; line-height:1.15; }
.article-hero .lead{ font-size:16px; color:var(--muted); max-width:90ch; }
.article-meta{ display:flex; gap:16px; flex-wrap:wrap; font-size:12.5px; color:var(--muted); margin:18px 0 32px; font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; }

.toc{ background:var(--bg-card); border:1px solid var(--line); border-radius:14px; padding:26px 28px; margin:8px 0 40px; }
.toc h2{ font-size:13px !important; text-transform:uppercase; letter-spacing:.06em; font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; color:var(--gold); margin:0 0 16px !important; font-weight:600; }
.toc ol{ margin:0; padding-left:20px; color:var(--muted); font-size:14.5px; }
.toc li{ margin-bottom:8px; }
.toc a{ color:var(--cream); }
.toc a:hover{ color:var(--gold-bright); }

.article-body{ margin-top:8px; }
.article-body h2{ font-size:21px; text-transform:none; letter-spacing:0; font-weight:800; margin:38px 0 14px; color:var(--cream); }
.article-body h3{ font-size:16px; text-transform:none; letter-spacing:0; font-family:'Manrope', sans-serif; font-weight:700; margin:24px 0 10px; color:var(--cream); }
.article-body p{ font-size:15px; color:var(--muted); margin-bottom:16px; max-width:90ch; }
.article-body ul, .article-body ol{ margin:0 0 18px 22px; color:var(--muted); font-size:15px; max-width:90ch; }
.article-body li{ margin-bottom:8px; }
.article-body strong{ color:var(--cream); }
.article-body a:not(.btn){ color:var(--gold); text-decoration:underline; text-decoration-color:var(--line); }
.article-body a:not(.btn):hover{ color:var(--gold-bright); }
.article-body table{ width:100%; border-collapse:collapse; margin:20px 0 28px; font-size:14px; }
.article-body table th, .article-body table td{ text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); color:var(--muted); }
.article-body table th{ color:var(--gold-bright); font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }

.cta-box{ background:var(--bg-card); border:1px solid var(--line); border-radius:14px; padding:26px 28px; margin:36px 0; }
.cta-box p{ max-width:90ch; }
.cta-box h3{ margin-top:0 !important; }
.cta-box p{ margin-bottom:18px; }
.cta-box .btn{ margin-right:10px; }

.mobile-menu-phone{
  display:flex !important; align-items:center; gap:8px;
  font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; color:var(--gold) !important;
  font-weight:600; margin-bottom:8px; padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.fphone{ color:var(--gold); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.fphone:hover{ color:var(--gold-bright); }

@media (max-width:860px){
  .nav-links{ display:none; }
}
@media (max-width:480px){
  .wrap{ padding:0 18px; }
  .nav{ padding:16px 18px; }
  .logo-text{ display:none; }
  .nav-cta{ gap:10px; }
  .btn{ padding:11px 18px; font-size:13px; }
}

/* ---------- BOUTON FLOTTANT WHATSAPP (toutes les pages) ---------- */
.wa-widget{ position:fixed; right:22px; bottom:22px; z-index:80; }

.whatsapp-float{
  position:relative; width:58px; height:58px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:none; padding:0; cursor:pointer; background:transparent;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
  transition:transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float svg{ width:100%; height:100%; }
.whatsapp-float:hover{ transform:scale(1.07); box-shadow:0 8px 24px rgba(0,0,0,.34); }

.wa-badge{
  position:absolute; top:-3px; right:-3px; min-width:20px; height:20px; padding:0 5px;
  border-radius:999px; background:#FF3B30; color:#fff; font-size:11.5px; font-weight:700;
  display:flex; align-items:center; justify-content:center; border:2px solid var(--bg);
  font-family:'Manrope', sans-serif;
}

.wa-popup{
  position:absolute; right:0; bottom:74px; width:320px; max-width:calc(100vw - 44px);
  background:#f3ecdc; border-radius:16px; overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  opacity:0; visibility:hidden; transform:translateY(12px) scale(.97);
  transform-origin:bottom right;
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.wa-popup.wa-open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }

.wa-popup-header{
      background: var(--gold-bright); padding:16px 18px; display:flex; align-items:center; gap:12px;
}
.wa-avatar{
  width:44px; height:44px; border-radius:50%; object-fit:cover; background:#8f8546;
  border:2px solid rgba(0,0,0,.15); flex-shrink:0;
}
.wa-popup-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.wa-popup-info strong{ color:#1b1710; font-family:'Manrope', sans-serif; font-size:14.5px; font-weight:700; }
.wa-popup-info span{ color:rgba(27,23,16,.72); font-size:12px; }
.wa-close{
  background:transparent; border:none; color:rgba(27,23,16,.7); font-size:20px;
  line-height:1; cursor:pointer; padding:4px; flex-shrink:0; transition:color .15s ease;
}
.wa-close:hover{ color:#1b1710; }

.wa-popup-body{ padding:20px 18px 18px; }
.wa-bubble{
  background:#fff; border-radius:10px; padding:12px 14px 18px; position:relative;
  box-shadow:0 1px 2px rgba(0,0,0,.12); margin-bottom:16px;
}
.wa-bubble p{ font-size:14px; color:#111b21; margin:0 0 4px; line-height:1.4; }
.wa-bubble p:last-of-type{ margin-bottom:0; }
.wa-time{ position:absolute; right:14px; bottom:8px; font-size:11px; color:#8696a0; }

.wa-cta{
  display:flex; align-items:center; justify-content:center; gap:9px;
  background:#111111; color:#fff; font-family:'Manrope', sans-serif; font-weight:700;
  font-size:14.5px; padding:13px 18px; border-radius:999px; text-decoration:none;
  transition:background .15s ease;
}
.wa-cta:hover{ background:#2a2a2a; color:#fff; }
.wa-cta svg{ width:20px; height:20px; flex-shrink:0; }

@media (max-width:480px){
  .wa-widget{ right:16px; bottom:16px; }
  .whatsapp-float{ width:52px; height:52px; }
  .wa-popup{ width:290px; bottom:66px; }
}

/* ---------- BANDEAU COOKIES (encart discret en coin) ---------- */
.cookie-banner{
  position:fixed; left:16px; bottom:16px; z-index:95;
  max-width:320px;
  background:var(--bg-card); border:1px solid var(--line); border-radius:14px;
  box-shadow:0 12px 32px rgba(0,0,0,0.22);
  transform:translateY(calc(100% + 16px)); transition:transform .35s ease;
  padding:18px;
}
.cookie-banner.visible{ transform:translateY(0); }
.cookie-banner-inner{
  display:flex; flex-direction:column; align-items:stretch; gap:14px;
}
.cookie-banner-text{ font-size:12.5px; color:var(--muted); margin:0; line-height:1.5; }
.cookie-banner-text a{ color:var(--gold); }
.cookie-banner-text a:hover{ color:var(--gold-bright); }
.cookie-banner-actions{ display:flex; gap:10px; }
.cookie-banner-actions .btn{ flex:1; padding:9px 14px; font-size:12.5px; }
@media (max-width:480px){
  .cookie-banner{ left:12px; right:12px; bottom:12px; max-width:none; }
}

/* ---------- SÉLECTEUR DE BOUTIQUE (popup global, header + accueil) ---------- */
.shops-overlay{
  position:fixed; inset:0; z-index:100; background:rgba(0,0,0,0.6);
  display:none; align-items:center; justify-content:center; padding:20px;
}
.shops-overlay.open{ display:flex; }
.shops-modal{
  background:rgba(var(--bg-rgb)); border:1px solid var(--line); border-radius:18px;
  max-width:480px; width:100%; max-height:80vh; overflow-y:auto;
  padding:28px; box-shadow:0 30px 70px -20px rgba(0,0,0,0.5);
}
.shops-modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.shops-modal-head h3{ font-size:18px; color:var(--cream); }
.shops-close{
  width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:transparent;
  color:var(--muted); cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center;
}
.shops-close:hover{ color:var(--gold-bright); border-color:var(--gold); }
.shops-modal-sub{ font-size:13px; color:var(--muted); margin-bottom:20px; }
.shops-list{ display:flex; flex-direction:column; gap:12px; }
.shop-item{
	background: var(--bg-card);
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid var(--line); border-radius:12px; padding:16px;
}
.shop-item-info{ display:flex; flex-direction:column; gap:2px; }
.shop-item-info strong{ font-family:'Archivo Black', sans-serif; text-transform:uppercase; font-size:14px; color:var(--cream); }
.shop-item-info span{ font-size:12.5px; color:var(--muted); }
.shop-item-info .shop-distance{ color:var(--gold); font-weight:600; margin-top:2px; }
.shop-item-info .shop-type-badge{
  display:inline-flex; align-self:flex-start; align-items:center; gap:5px;
  font-family:'Manrope', sans-serif; font-variant-numeric: tabular-nums; font-size:10px; text-transform:uppercase; letter-spacing:0.05em;
  padding:3px 9px; border-radius:999px; margin:2px 0;
}
.shop-item-info .shop-type-badge.mere{ background:rgba(168,158,83,0.15); color:var(--gold); border:1px solid rgba(168,158,83,0.35); }
.shop-item-info .shop-type-badge.partenaire{ background:transparent; color:var(--muted); border:1px solid var(--line); }
.shop-choose{ padding:9px 16px; font-size:12.5px; white-space:nowrap; flex-shrink:0; }

@media (max-width:520px){
  .shop-item{ flex-direction:column; align-items:flex-start; gap:12px; }
  .shop-choose{ width:100%; text-align:center; }
}
@media (max-width:480px){
  .shops-modal{ padding:20px; }
}
