/* ============================================================
   layout.css — HEADER + FOOTER PARTAGES (une seule source)
   Autonome : couleurs en dur, selecteurs scopes sous .site-header
   et .site-footer, aucune variable globale ni reset, pour pouvoir
   etre charge sur n'importe quelle page sans perturber son design.
   ============================================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 52px;
  background: #fff;
  border-bottom: 1px solid rgba(145, 4, 32, 0.1);
  box-shadow: 0 1px 18px rgba(145, 4, 32, 0.07);
  font-family: 'DM Sans', sans-serif;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.site-header .logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.site-header .logo span {
  font-family: 'Instrument Serif', serif;
  font-size: 1.55rem;
  font-style: italic;
  color: #1a0408;
}
.site-header .npills {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(145, 4, 32, 0.05);
  border: 1px solid rgba(145, 4, 32, 0.12);
  border-radius: 50px;
  padding: 4px 6px;
}
.site-header .npills a {
  color: #5c2030;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
}
.site-header .npills a:hover {
  color: #1a0408;
  background: rgba(145, 4, 32, 0.07);
}
.site-header .npills a.active {
  background: #a8041f;
  color: #fff;
}
.site-header .bnav {
  background: #a8041f;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(145, 4, 32, 0.28);
  transition: background 0.2s, transform 0.15s;
}
.site-header .bnav:hover {
  background: #c4052c;
  transform: translateY(-1px);
}

/* Le header est fixe : on decale le premier bloc des pages legales
   pour qu'il ne passe pas sous le bandeau blanc. */
.hero-legal {
  padding-top: 100px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, #1c0006 0%, #130004 40%, #080002 100%);
  border-top: 1px solid rgba(145, 4, 32, 0.22);
  padding: 72px 44px 36px;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(145, 4, 32, 0.6), rgba(200, 40, 40, 0.7), rgba(145, 4, 32, 0.6), transparent);
}
.site-footer .ft {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.site-footer .fttop {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.site-footer .ftlogo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.site-footer .ftlogo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.site-footer .ftlogo span {
  font-family: 'Instrument Serif', serif;
  font-size: 1.55rem;
  font-style: italic;
  color: #fff;
}
.site-footer .ftbrand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
  margin-bottom: 20px;
}
.site-footer .fstores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.site-footer .fbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.site-footer .fbadge:hover {
  border-color: rgba(145, 4, 32, 0.32);
  background: rgba(145, 4, 32, 0.12);
  color: #fff;
}

/* Icones sociales en verre (identiques a l'accueil) */
.site-footer .fsrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer .fsc {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.site-footer .fsc:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.16);
}
.site-footer .f-ig:hover { border-color: #dc2743; box-shadow: 0 6px 22px rgba(220, 39, 67, 0.45); }
.site-footer .f-fb:hover { border-color: #1877f2; box-shadow: 0 6px 22px rgba(24, 119, 242, 0.45); }
.site-footer .f-li:hover { border-color: #0a66c2; box-shadow: 0 6px 22px rgba(10, 102, 194, 0.45); }
.site-footer .f-yt:hover { border-color: #ff0000; box-shadow: 0 6px 22px rgba(255, 0, 0, 0.45); }
.site-footer .f-tt:hover { border-color: #ffffff; box-shadow: 0 6px 22px rgba(255, 255, 255, 0.28); }
.site-footer .f-wa:hover { border-color: #25d366; box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45); }

.site-footer .ftcol h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
}
.site-footer .ftcol ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  margin: 0;
}
.site-footer .ftcol a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .ftcol a:hover { color: #fff; }
.site-footer .ftbot {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .ftbot span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
}
.site-footer .ftleg {
  display: flex;
  gap: 20px;
}
.site-footer .ftleg a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .ftleg a:hover { color: rgba(200, 40, 40, 0.8); }

/* ---------- WHATSAPP FLOTTANT ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  animation: waBounce 2s ease infinite;
}
.wa-float:hover { animation: none; transform: scale(1.05); }
.wa-bubble {
  background: #25d366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-bubble:hover { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }
.wa-tooltip {
  background: #1a0006;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37, 211, 102, 0.3);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- MODALE COOKIES ---------- */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: #1a0006;
  border: 1px solid rgba(145, 4, 32, 0.4);
  border-radius: 16px;
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: none;
  font-family: 'DM Sans', sans-serif;
  animation: cookieSlideUp 0.4s ease;
}
.cookie-modal.show { display: block; }
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-cookie:hover { transform: translateY(-1px); }
.btn-accept { background: #a8041f; color: #fff; }
.btn-refuse {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .site-header { padding: 12px 20px; }
  .site-header .npills { display: none; }
  .site-footer .fttop { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer { padding: 52px 20px 28px; }
  .site-footer .fttop { grid-template-columns: 1fr; }
  .wa-tooltip { display: none; }
}
