/* === PREMIERS-SECOURS.FR — Design System === */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --rouge: #C8281A;
  --rouge-fonce: #9A1E12;
  --rouge-pale: #FFF1F0;
  --rouge-mid: #F5CBCB;
  --orange: #E07B2A;
  --jaune: #F4C842;
  --vert: #2D6A4F;
  --vert-clair: #E4F5EC;
  --bleu: #1D3A57;
  --bleu-clair: #E4EEF7;
  --blanc: #FAFAF7;
  --gris-1: #F4F3EF;
  --gris-2: #E5E4DF;
  --gris-3: #9B9A94;
  --gris-4: #4A4944;
  --noir: #19181A;
  --f-title: 'Fraunces', serif;
  --f-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-body); background: var(--blanc); color: var(--noir); overflow-x: hidden; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--f-title); line-height: 1.1; letter-spacing: -0.02em; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gris-1); }
::-webkit-scrollbar-thumb { background: var(--rouge); border-radius: 3px; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gris-2);
  transition: box-shadow 0.3s;
}
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; padding: 0 1.5rem; height: 60px; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: 9px; font-family: var(--f-title); font-size: 0.95rem; font-weight: 800; color: var(--rouge); white-space: nowrap; flex-shrink: 0; }
.nav-brand .ci { width: 26px; height: 26px; background: var(--rouge); border-radius: 5px; display: grid; place-items: center; flex-shrink: 0; }
.nav-brand .ci svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-size: 0.78rem; font-weight: 500; color: var(--gris-4); padding: 0.35rem 0.65rem; border-radius: 5px; white-space: nowrap; transition: all 0.15s; }
.nav-links a:hover, .nav-links a.active { background: var(--rouge-pale); color: var(--rouge); }
.nav-cta { flex-shrink: 0; background: var(--rouge); color: white; font-family: var(--f-title); font-weight: 700; font-size: 0.75rem; padding: 0.45rem 1rem; border-radius: 5px; transition: all 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--rouge-fonce); }

/* PAGE SHELL */
.pt-nav { padding-top: 60px; }

/* SECTION WRAPPERS */
.wrap { max-width: 1280px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.wrap-sm { max-width: 860px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.wrap-xs { max-width: 680px; margin: 0 auto; padding: 4.5rem 1.5rem; }

/* SECTION HEADERS */
.sh { margin-bottom: 2.5rem; }
.sh .pre { font-family: var(--f-title); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rouge); margin-bottom: 0.4rem; }
.sh h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; }
.sh p { font-size: 0.95rem; color: var(--gris-3); max-width: 540px; margin-top: 0.6rem; line-height: 1.7; }

/* CARDS */
.card { background: white; border: 1px solid var(--gris-2); border-radius: 14px; transition: all 0.2s; }
.card:hover { border-color: var(--rouge); box-shadow: 0 6px 24px rgba(200,40,26,0.08); transform: translateY(-2px); }
.card.highlight { border-color: var(--rouge); background: linear-gradient(135deg, white, var(--rouge-pale)); }

/* BADGES */
.badge { display: inline-flex; align-items: center; font-family: var(--f-title); font-size: 0.62rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-rouge { background: var(--rouge-pale); color: var(--rouge-fonce); }
.badge-bleu { background: var(--bleu-clair); color: var(--bleu); }
.badge-vert { background: var(--vert-clair); color: var(--vert); }
.badge-orange { background: #FEF3C7; color: #92400E; }
.badge-noir { background: var(--noir); color: white; }

/* ALERT TAGS */
.urgence-vital { display: inline-flex; align-items: center; gap: 4px; background: #FEE2E2; color: #991B1B; font-family: var(--f-title); font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 4px; margin-top: 0.75rem; }
.urgence-important { display: inline-flex; align-items: center; gap: 4px; background: #FEF3C7; color: #92400E; font-family: var(--f-title); font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 4px; margin-top: 0.75rem; }
.urgence-ok { display: inline-flex; align-items: center; gap: 4px; background: var(--vert-clair); color: var(--vert); font-family: var(--f-title); font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 4px; margin-top: 0.75rem; }

/* STEP LIST */
.steps { display: flex; flex-direction: column; gap: 0.35rem; }
.step { display: flex; gap: 8px; align-items: flex-start; font-size: 0.82rem; color: var(--gris-4); }
.step .n { width: 20px; height: 20px; border-radius: 50%; background: var(--rouge); color: white; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; font-family: var(--f-title); }
.step .nn { width: 20px; height: 20px; border-radius: 50%; background: var(--bleu); color: white; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; font-family: var(--f-title); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* BUTTONS */
.btn-rouge { display: inline-flex; align-items: center; gap: 7px; background: var(--rouge); color: white; font-family: var(--f-title); font-weight: 700; font-size: 0.85rem; padding: 0.75rem 1.5rem; border-radius: 7px; transition: all 0.2s; border: none; cursor: pointer; }
.btn-rouge:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--gris-2); color: var(--gris-4); font-family: var(--f-title); font-weight: 600; font-size: 0.82rem; padding: 0.65rem 1.2rem; border-radius: 7px; transition: all 0.2s; background: white; cursor: pointer; }
.btn-outline:hover { border-color: var(--rouge); color: var(--rouge); }
.link-rouge { display: inline-flex; align-items: center; gap: 4px; color: var(--rouge); font-size: 0.8rem; font-weight: 600; transition: gap 0.15s; }
.link-rouge:hover { gap: 8px; }

/* DARK SECTION */
.dark-section { background: var(--noir); color: white; }
.dark-section .sh .pre { color: rgba(255,255,255,0.4); }
.dark-section .sh h2 { color: white; }
.dark-section .sh p { color: rgba(255,255,255,0.45); }

/* TABS */
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn { font-family: var(--f-title); font-size: 0.75rem; font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 5px; border: 1px solid var(--gris-2); background: white; color: var(--gris-4); cursor: pointer; transition: all 0.15s; }
.tab-btn:hover, .tab-btn.active { background: var(--rouge); border-color: var(--rouge); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* FADE IN */
.fi { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
.fi.vis { opacity: 1; transform: none; }

/* FOOTER */
footer { background: #111; border-top: 1px solid #1F1F1F; color: rgba(255,255,255,0.35); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo-wrap { font-family: var(--f-title); font-size: 0.9rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 8px; margin-bottom: 0.65rem; }
.footer-logo-icon { width: 20px; height: 20px; background: var(--rouge); border-radius: 4px; display: grid; place-items: center; flex-shrink: 0; }
.footer-logo-icon svg { width: 11px; height: 11px; }
.footer-brand p { font-size: 0.78rem; line-height: 1.6; max-width: 260px; }
.footer-brand .disc { font-size: 0.7rem; color: rgba(255,255,255,0.2); margin-top: 0.65rem; line-height: 1.5; }
.footer-col h4 { font-family: var(--f-title); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin-bottom: 0.85rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col a { font-size: 0.78rem; color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.7rem; }
.footer-seo { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-seo a { color: rgba(255,255,255,0.2); font-size: 0.68rem; transition: color 0.15s; }
.footer-seo a:hover { color: rgba(255,255,255,0.5); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .wrap, .wrap-sm, .wrap-xs { padding: 3rem 1.25rem; }
}
