/* Vitrine Fleurs Discount — styles (s'appuie sur /assets/tokens.css). */
html, body { overflow-x: hidden; max-width: 100%; overscroll-behavior: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--fd-gap);
  padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fd-border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fd-text); }
.brand-badge {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, var(--fd-rose), var(--fd-rose-dark));
  color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: var(--fd-shadow);
}
.brand-badge-img { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(196,41,116,.25)); }
.brand-name { font-weight: 600; font-size: 1.15rem; }
.brand-name .fd-script { font-size: 1.5rem; margin-right: 3px; }
.brand-name strong { color: var(--fd-or); }
.site-nav { display: flex; gap: 18px; margin-left: 8px; }
.site-nav a { text-decoration: none; color: var(--fd-text-soft); font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--fd-rose-dark); border-color: var(--fd-rose); }
.brand { min-width: 0; }
.brand-name { white-space: nowrap; }
.fd-status-dot { margin-left: auto; text-decoration: none; color: var(--fd-text); flex: 0 0 auto; white-space: nowrap; }
.fd-status-vac .vac-emoji { margin-right: 5px; font-size: .95em; }
.header-cta { margin-left: 4px; padding: 9px 16px; font-size: .92rem; flex: 0 0 auto; }
/* Sélecteur de langue (menu déroulant drapeau + code, sans JS) */
.lang-dd { position: relative; flex: 0 0 auto; margin-left: 2px; }
.lang-dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid var(--fd-border); border-radius: var(--fd-radius-pill);
  font-weight: 600; font-size: .85rem; color: var(--fd-text); background: #fff; white-space: nowrap; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary .flag { font-size: 1.05rem; line-height: 1; }
.lang-dd summary .caret { font-size: .7rem; opacity: .7; }
.lang-dd[open] summary { border-color: var(--fd-rose); }
.lang-dd ul { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; margin: 0; padding: 5px;
  list-style: none; min-width: 104px; background: #fff; border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius); box-shadow: var(--fd-shadow); }
.lang-dd ul a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--fd-text); font-weight: 600; font-size: .9rem; }
.lang-dd ul a:hover { background: var(--fd-rose-tint); }
.lang-dd ul a.on { background: var(--fd-rose-tint); color: var(--fd-rose-dark); }
.lang-dd ul .flag { font-size: 1.05rem; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .site-header { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .brand-name { font-size: 1rem; }
  .brand-name .fd-script { font-size: 1.3rem; }
  .fd-status-dot .status-text { font-size: .9rem; }
  .lang-dd summary { padding: 5px 8px; }
}

.site-main { min-height: 60vh; }

/* Hero */
.hero {
  /* Image florale en fond, voile blanc doux au centre (lisibilité du titre),
     les fleurs des côtés restent vives ; couleur de repli si l'image manque. */
  background:
    radial-gradient(125% 95% at 50% 42%, rgba(255,255,255,.5), rgba(255,255,255,0) 62%),
    url('/assets/hero-bg.webp') center / cover no-repeat,
    var(--fd-rose-tint);
  padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 48px);
}
/* Mobile : image dédiée portrait (4:5) */
@media (max-width: 700px) {
  .hero {
    background:
      radial-gradient(120% 72% at 50% 46%, rgba(255,255,255,.45), rgba(255,255,255,0) 62%),
      url('/assets/hero-bg-mobile.webp') center / cover no-repeat,
      var(--fd-rose-tint);
  }
}
.hero-inner { max-width: var(--fd-maxw); margin: 0 auto; text-align: center; }
.hero-logo { width: clamp(100px, 22vw, 150px); height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 8px 22px rgba(196,41,116,.25)); }
.hero-kicker { color: var(--fd-rose-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin: 0 0 6px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin: 0; line-height: 1.1; }
.hero-script { font-size: clamp(3rem, 10vw, 6rem); }
.hero-disc { color: var(--fd-or); font-weight: 700; }
.hero-sub { max-width: 600px; margin: 18px auto 26px; color: var(--fd-text-soft); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-status { margin: 26px auto 0; display: inline-flex; }

/* Sections */
.section { max-width: var(--fd-maxw); margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 32px); }
.section.narrow { max-width: 760px; }
.section-alt { background: var(--fd-rose-tint); max-width: none; }
.section-alt > * { max-width: var(--fd-maxw); margin-inline: auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2, .page-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--fd-text-soft); }
.see-all { text-decoration: none; color: var(--fd-rose-dark); font-weight: 600; }
.empty { color: var(--fd-text-soft); text-align: center; padding: 40px; }

/* Cartes événement */
.evt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--fd-gap-lg); }
.evt-card { border-radius: var(--fd-radius-lg); overflow: hidden; background: #fff; box-shadow: var(--fd-shadow); transition: transform .15s ease; }
.evt-card:hover { transform: translateY(-3px); }
.evt-card.is-greyed { filter: grayscale(.85) opacity(.7); }
.evt-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.evt-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Filigrane « fleur maison » sur les cartes sans photo (image /assets/flower.png) */
.evt-placeholder { width: 100%; height: 100%;
  background: url('/assets/flower.png') center / 46% no-repeat,
              linear-gradient(135deg, var(--fd-rose-soft), var(--fd-or-soft)); }
.pf-placeholder {
  background: url('/assets/flower.png') center / 52% no-repeat,
              linear-gradient(135deg, var(--fd-rose-soft), var(--fd-or-soft)); }
.evt-veil { position: absolute; inset: 0; background: var(--veil); }
/* Ruban d'angle (technique boîte 150×150 qui rogne + sash large 230px) :
   tout libellé, même long (« Bientôt épuisé »), tient et reste centré. */
.evt-ribbon { position: absolute; top: 0; right: 0; width: 150px; height: 150px; overflow: hidden; z-index: 3; pointer-events: none; }
.evt-ribbon span {
  position: absolute; display: block; width: 230px; left: -20px; top: 34px;
  transform: rotate(45deg); text-align: center;
  color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 0; box-shadow: 0 2px 6px rgba(0,0,0,.28);
}
.evt-cat { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.9); color: var(--fd-rose-dark); font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: var(--fd-radius-pill); }
.evt-more { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-weight: 600; font-size: .76rem; padding: 3px 10px; border-radius: var(--fd-radius-pill); z-index: 4; }

/* Miniatures images secondaires + lightbox vitrine */
.evt-thumbs { display: flex; gap: 8px; padding: 12px 14px 0; overflow-x: auto; }
.evt-thumb { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; border: 1px solid var(--fd-border); background-size: cover; background-position: center; cursor: zoom-in; padding: 0; }
.lb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 1000; display: none; align-items: center; justify-content: center; }
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 94vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
.lb-x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-l { left: 18px; } .lb-r { right: 18px; }
.lb-c { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: var(--fd-radius-pill); }
.evt-body { padding: 16px 18px 20px; }
.evt-body h3 { margin: 0 0 6px; font-size: 1.2rem; }
.evt-body p { margin: 0; color: var(--fd-text-soft); }
.evt-date { margin-top: 10px !important; color: var(--fd-rose-dark) !important; font-weight: 500; text-transform: capitalize; }

/* Portfolio */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--fd-gap); }
.pf-grid-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
/* Aperçu accueil : lignes pleines de 4 (desktop) ou 2 (mobile) → jamais de trou. */
.pf-grid-home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .pf-grid-home { grid-template-columns: repeat(2, 1fr); } }
.pf-item { margin: 0; border-radius: var(--fd-radius); overflow: hidden; background: #fff; box-shadow: var(--fd-shadow-sm); }
.pf-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pf-placeholder { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--fd-rose-soft), var(--fd-or-soft)); }
.pf-item figcaption { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pf-item figcaption strong { color: var(--fd-text); }
.pf-item figcaption span { color: var(--fd-text-soft); font-size: .9rem; }

/* App promo */
.app-promo { background: linear-gradient(135deg, var(--fd-rose), var(--fd-rose-dark)); color: #fff; padding: clamp(40px,7vw,72px) 16px; text-align: center; }
.app-promo-inner { max-width: 640px; margin: 0 auto; }
.app-promo h2 { font-size: clamp(1.6rem,4vw,2.2rem); margin: 0 0 12px; }
.app-promo p { opacity: .95; margin: 0 0 22px; }

/* Horaires */
.hours-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--fd-radius); overflow: hidden; box-shadow: var(--fd-shadow-sm); }
.hours-table th, .hours-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--fd-line); }
.hours-table th { font-weight: 600; width: 42%; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.today { background: var(--fd-rose-tint); }
.hours-table tr.today th { color: var(--fd-rose-dark); }
.badge-today { font-size: .68rem; background: var(--fd-rose); color: #fff; padding: 2px 8px; border-radius: var(--fd-radius-pill); margin-left: 6px; font-weight: 600; vertical-align: middle; }
.hours-table .muted { color: var(--fd-disabled); }
.exc-closed { color: var(--fd-danger); font-weight: 500; }
.exc-open { color: var(--fd-success); font-weight: 600; }
.hours-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hours-now .dot { width: 12px; height: 12px; border-radius: 50%; }
.hours-now.open .dot { background: var(--fd-open); animation: fd-pulse-green 1.6s ease-in-out infinite; } .hours-now.open { color: var(--fd-success); }
.hours-now.closed .dot { background: var(--fd-closed); } .hours-now.closed { color: var(--fd-danger); }
.hint { color: var(--fd-text-soft); font-size: .9rem; margin-top: 14px; }

/* Ligne du tableau tombant dans les congés : horaires habituels atténués
   + mention explicite de la fermeture (pas de barré : les horaires restent
   ceux qui s'appliqueront au retour). */
.hours-table tr.vac .slots-off { color: var(--fd-text-soft); }
.vac-flag {
  display: inline-block; margin-left: 8px; padding: 1px 9px;
  border-radius: var(--fd-radius-pill); background: var(--fd-rose-soft);
  color: var(--fd-rose-dark); font-size: .75rem; font-weight: 600; white-space: nowrap;
}

/* Infos / install */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--fd-gap-lg); }
.info-card { padding: 22px 24px; }
.info-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.info-card h3 + p { margin: 0 0 16px; color: var(--fd-text-soft); }
.info-card ol { margin: 0; padding-left: 20px; color: var(--fd-text-soft); line-height: 1.7; }
.install-cta { text-align: center; margin: 24px 0 30px; }
.install-cards { display: grid; gap: var(--fd-gap); }
.install-card { padding: 20px 22px; transition: box-shadow .15s, transform .15s; }
.install-card.primary { box-shadow: var(--fd-shadow-lg); border: 2px solid var(--fd-rose); order: -1; }
.install-card.secondary { opacity: .72; }
.install-card h3 { margin: 0 0 10px; }
.install-card ol { margin: 0; padding-left: 20px; color: var(--fd-text-soft); line-height: 1.8; }
.banner-installed { background: var(--fd-or-soft); border: 1px solid var(--fd-or-light); border-radius: var(--fd-radius); padding: 12px 16px; margin-bottom: 18px; }

/* Footer */
.site-footer { background: #2a1620; color: #f3e3ec; margin-top: 40px; }
.foot-cols { max-width: var(--fd-maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--fd-gap-lg); padding: 48px clamp(16px,4vw,32px) 28px; }
.foot-cols h4 { color: var(--fd-or-light); margin: 0 0 10px; }
.foot-cols p { color: #d8c2cf; line-height: 1.6; margin: 0 0 14px; }
.foot-brand { font-size: 1.3rem; margin-bottom: 10px; }
.foot-brand .fd-script { color: var(--fd-rose); font-size: 1.7rem; } .foot-brand strong { color: var(--fd-or); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; font-size: .85rem; color: #c7adba; }
.foot-bottom a { color: var(--fd-or-light); }
/* Carte de fidélité = smartphone uniquement.
   Sur ORDINATEUR (appareil à souris) → les boutons « carte / installer »
   DISPARAISSENT complètement (pas de grisage), remplacés par une note. */
.smartphone-only-note { display: none; font-size: .9rem; color: var(--fd-rose-dark); font-weight: 600; }
.app-promo-note { color: #fff !important; opacity: .95; margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .loyalty-cta { display: none !important; }
  .smartphone-only-note { display: inline-block; margin-top: 8px; }
}

.map-link { color: inherit; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.info-card .map-link { color: var(--fd-rose-dark); font-weight: 500; }
