/* ============================================================
   SHARED.CSS — Cent pour Sang
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --rouge:       #E8000A;
  --rouge-dark:  #B0000A;
  --rouge-pale:  #FFF0F0;
  --rouge-tint:  #FFEBEB;
  --noir:        #160404;
  --profond:     #1E0606;
  --sable:       #F5EDE0;
  --creme:       #FEFCFA;
  --blanc:       #FFFFFF;
  --muted:       #9B7A7A;
  --terre:       #C4724A;
  --or:          #E8A020;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 4px rgba(22,4,4,0.06);
  --shadow-md:  0 4px 16px rgba(22,4,4,0.08);
  --shadow-lg:  0 8px 32px rgba(22,4,4,0.12);
  --shadow-xl:  0 16px 48px rgba(22,4,4,0.16);

  --transition: 200ms ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

address {
  font-style: normal;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--rouge); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--rouge-dark); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.eyebrow-dot::before {
  content: "●";
  color: var(--rouge);
  font-size: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--noir);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}

.text-rouge { color: var(--rouge); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--rouge);
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--rouge);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--rouge-dark);
  border-color: var(--rouge-dark);
  box-shadow: 0 4px 16px rgba(232,0,10,0.28);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--rouge);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--rouge);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--rouge-tint);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blanc);
  color: var(--rouge);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blanc);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-white:hover {
  background: var(--rouge-pale);
  box-shadow: 0 4px 16px rgba(22,4,4,0.2);
  transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--blanc);
  border-radius: var(--radius-md);
  border: 1px solid rgba(22,4,4,0.07);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(22,4,4,0.06);
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.fg label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fg input,
.fg select,
.fg textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--noir);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(22,4,4,0.15);
  padding: 0.5rem 0;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-bottom-color: var(--rouge);
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: rgba(22,4,4,0.3);
}

.fg textarea {
  min-height: 100px;
  resize: vertical;
}

.fg select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.fg-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.25rem 0;
}

.fg-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--noir);
  cursor: pointer;
}

.fg-checkboxes input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--rouge);
  border-bottom: none;
  padding: 0;
}

.form-submit {
  margin-top: 0.5rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--creme);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid rgba(22,4,4,0.06);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb-sep { color: rgba(22,4,4,0.2); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--noir);
  margin-bottom: 0.75rem;
}

.page-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 0;
  transition: background 280ms, backdrop-filter 280ms, box-shadow 280ms, padding 280ms;
}

.nav.scrolled {
  background: rgba(254,252,250,0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(22,4,4,0.08);
  padding: 0.65rem 0;
}

/* On light bg pages, nav is opaque from the start */
.nav-light-page .nav {
  background: rgba(254,252,250,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rouge);
  letter-spacing: -0.01em;
}

.nav-logo-text .sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--noir);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--rouge);
  color: var(--blanc);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--rouge-dark);
  box-shadow: 0 4px 12px rgba(232,0,10,0.3);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--noir);
  border-radius: 2px;
  transition: transform 250ms, opacity 250ms;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--blanc);
  border-top: 1px solid rgba(22,4,4,0.06);
  transition: max-height 350ms ease;
}

.nav-mobile.open {
  max-height: 600px;
}

.nav-mobile ul {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile ul li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--noir);
  border-bottom: 1px solid rgba(22,4,4,0.05);
  transition: color var(--transition);
}

.nav-mobile ul li a:hover { color: var(--rouge); }

.mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 2rem 1.5rem;
  background: var(--rouge);
  color: var(--blanc);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
  width: fit-content;
}

.mobile-cta:hover { background: var(--rouge-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--noir);
  color: rgba(255,255,255,0.7);
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 30ch;
}

.footer-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blanc);
}

.footer-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
}

.social-btn:hover {
  background: var(--rouge);
  color: var(--blanc);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--blanc);
}

.footer-col address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-col address a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col address a:hover {
  color: var(--blanc);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--blanc); }

.footer-heart {
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

.rv-d1 { transition-delay: 100ms; }
.rv-d2 { transition-delay: 200ms; }
.rv-d3 { transition-delay: 300ms; }
.rv-d4 { transition-delay: 400ms; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .nav-links {
    gap: 1.25rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-mobile {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.75rem 1.25rem;
  }

  .page-hero {
    padding: 7rem 0 3rem;
  }
}
