/* Styles partagés entre les 7 pages du site (nav, footer, variables,
   animation d'apparition) — mutualisés le 04/09 pour éviter d'avoir à
   répéter un changement de couleur/police sur chaque page (voir
   SITE_APP_SYNC.md point 3). Chaque page garde son propre <style> pour
   ce qui lui est spécifique (largeur de .page, hero, cartes produit,
   formulaires...).

   Note : les largeurs de .site-nav-inner/.site-footer-inner et le point
   de bascule du menu mobile variaient légèrement selon les pages
   (560/480/880px, 899/949px) sans lien avec leur contenu — harmonisés
   ici à une seule valeur. Différence visuelle négligeable, uniquement
   entre ~600 et 899px de large. */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --text: #1c2420;
  --text-muted: #59685f;
  --text-faint: #8a978f;
  --accent: #1478a4;
  --accent-strong: #0b5a80;
  --accent-soft: #e3f1f7;
  --border: #dfe6e0;
  --border-strong: #c5d0c8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */
.site-nav { position: relative; }

/* Fine barre au-dessus de la nav principale (logo/liens/menu), qui
   accueille les icônes langue/panier injectées en JS (assets/i18n.js,
   assets/cart.js) — sur sa propre ligne plutôt que mêlée au logo ou aux
   liens (retour utilisateur du 08/09 : ni collées au logo, ni sur la
   même ligne que le reste). Toujours visible, y compris sur mobile. */
.site-nav-utility { border-bottom: 1px solid var(--border); }
.site-nav-utility-inner {
  max-width: 560px; margin: 0 auto; padding: 0.35rem 1.1rem;
  display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
}
@media (min-width: 900px) {
  .site-nav-utility-inner { max-width: 860px; }
}

.site-nav-inner {
  border-bottom: 1px solid var(--border);
  max-width: 560px; margin: 0 auto; padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
}
@media (min-width: 900px) {
  .site-nav-inner { max-width: 860px; }
}
.site-nav-brand {
  display: flex; align-items: center; gap: 0.55rem; text-decoration: none;
  font-weight: 800; font-size: 1.3rem; color: var(--accent-strong);
  margin-right: auto;
}
.site-nav-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.site-nav-links { display: flex; gap: 1.1rem; }
.site-nav-links a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  text-decoration: none; font-size: 0.86rem; font-weight: 600; color: var(--text-muted);
}
.site-nav-links a svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-nav-links a:hover { color: var(--accent-strong); }
.site-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.3rem; font-size: 1.4rem; line-height: 1; color: var(--text);
}
.site-nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 899px) {
  .site-nav-toggle { display: block; }
  .site-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0.9rem; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 1rem 1.1rem; z-index: 30;
  }
  .site-nav-links.open { display: flex; }
}

/* ---------- Sélecteur de langue (assets/i18n.js, injecté en JS dans
   .site-nav-utility-inner). Remplace l'ancien widget Google Translate,
   retiré (ne se chargeait plus en pratique). ---------- */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-picker-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer; padding: 0;
}
.lang-picker-btn:hover { color: var(--accent-strong); border-color: var(--border-strong); }
.lang-picker-btn svg { width: 18px; height: 18px; }
.lang-picker-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20, 30, 25, 0.14); padding: 0.4rem;
  width: 200px; max-height: 60vh; overflow-y: auto;
}
.lang-picker-panel.hidden { display: none; }
.lang-picker-list { display: flex; flex-direction: column; }
.lang-picker-item {
  text-align: left; background: none; border: none; cursor: pointer;
  padding: 0.5rem 0.6rem; border-radius: 6px; font-size: 0.88rem; color: var(--text);
  font-family: inherit;
}
.lang-picker-item:hover { background: var(--accent-soft); color: var(--accent-strong); }
@media (max-width: 899px) {
  /* Filet de sécurité sur très petits écrans (~320px) : si malgré tout
     ça ne tient pas, "Groupe Akora" se tronque plutôt que de pousser le
     bouton menu hors de l'écran. */
  .site-nav-brand { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .lang-picker-panel { right: -1.1rem; }
}
/* Langues RTL (arabe, ourdou, persan, hébreu) : on ne réoriente que le
   panneau de langue lui-même, pas tout le site (mise en page RTL
   complète hors périmètre pour l'instant). */
html[dir="rtl"] .lang-picker-item { text-align: right; }

/* ---------- Icône panier (assets/cart.js, injecté en JS dans
   .site-nav-utility-inner). Remplace l'ancien lien texte "Panier (n)"
   qui n'apparaissait que sur 3 des 9 pages (catalogue/produit/panier
   elle-même). ---------- */
.cart-nav-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); text-decoration: none;
  flex-shrink: 0;
}
.cart-nav-btn:hover { color: var(--accent-strong); border-color: var(--border-strong); }
.cart-nav-btn svg { width: 17px; height: 17px; }
.cart-nav-badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px;
  padding: 0 3px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.66rem; font-weight: 700; line-height: 16px; text-align: center;
}
.cart-nav-badge.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent-strong); color: #dbe9ee; margin-top: 2.5rem; padding: 2.6rem 1.1rem 1.6rem; }
.site-footer-inner { max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .site-footer-inner { max-width: 1100px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; text-align: left; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo {
  display: flex; align-items: center; justify-content: flex-start; gap: 0.55rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 0.8rem; line-height: 1;
}
.footer-logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-col p { color: #bcdae2; font-size: 0.88rem; line-height: 1.6; margin: 0 0 1rem; }
.hours-status { display: flex; align-items: center; gap: 0.45rem; }
.hours-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #9dc2cc; }
.hours-dot.open { background: #3fbf60; }
.hours-dot.closed { background: #e05252; }
.footer-col h3 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff; margin: 0 0 0.9rem;
}
.footer-col a {
  display: flex; align-items: center; gap: 0.4rem;
  color: #bcdae2; text-decoration: none; font-size: 0.88rem; margin-bottom: 0.6rem;
}
.footer-col a svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-col a:hover { color: #fff; }
.social { display: flex; justify-content: flex-start; gap: 0.7rem; }
.social a {
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.45rem 0.9rem;
}
.social a:hover { background: rgba(255,255,255,0.1); }
.social svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; align-items: center;
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.78rem; color: #9dc2cc;
}
.footer-bottom a { color: #9dc2cc; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.visit-counter { display: inline-flex; align-items: center; gap: 0.35rem; }
.visit-counter.hidden { display: none; }
.visit-counter svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Animations d'apparition ----------
   Chaque bloc ".reveal" apparaît en fondu vers le haut à l'arrivée sur la
   page ou au défilement. Désactivées si l'utilisateur préfère moins de
   mouvement (accessibilité). */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Survol léger sur les cartes cliquables (produits, services, promos...)
   — cohérent sur tout le site plutôt que redéfini page par page. */
.hover-lift { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20,30,25,0.1); }
@media (prefers-reduced-motion: reduce) { .hover-lift:hover { transform: none; } }

/* Animation d'entrée pour le contenu injecté en JS après le chargement
   (grilles de produits/catégories) : .reveal ne convient pas ici, son
   observateur de défilement est déjà armé avant que ce contenu
   n'existe dans le DOM — animation CSS pure jouée au montage à la place. */
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card-in { animation: cardIn 0.45s ease-out both; }
@media (prefers-reduced-motion: reduce) { .card-in { animation: none; } }

/* Badge rond coloré par pilier (assets/pillar-icons.js) — même esprit
   que la carte de visite professionnelle : icône blanche sur fond de
   couleur dédiée à chaque univers. */
.pillar-icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 50%; color: #fff;
}
.pillar-icon svg { width: 58%; height: 58%; }
