/* ═══════════════════════════════════════════════════════════
   Pages « Ressources » (guides pratiques pour les pros de l'outdoor)
   13/10/2026. À charger après design-tokens.css et leonio-adventure.css.
   Les règles de la barre du haut sont les mêmes que celles de index.html.
   ═══════════════════════════════════════════════════════════ */

/* ── Barre du haut ── */
.topnav-brand .la-logo-pill-sm img { height: 52px; }
.topnav-links { gap: 24px; }
.topnav-mobile { display: none; align-items: center; gap: 10px; }
.topnav-cta-mobile { padding: 9px 16px; font-size: 0.82rem; white-space: nowrap; }
.topnav-burger {
  width: 42px; height: 42px; flex-shrink: 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(10, 37, 64, 0.04);
  cursor: pointer;
}
.topnav-burger span {
  display: block; width: 20px; height: 2px; background: var(--marine-ink);
  border-radius: 2px; transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.topnav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topnav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topnav-drawer {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(244, 248, 251, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.topnav-drawer.open { display: flex; }
.topnav-drawer a { padding: 13px 8px; font-size: 1rem; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); }
.topnav-drawer a:last-child { border-bottom: none; }
.topnav-drawer .topnav-drawer-cta { margin-top: 10px; width: 100%; padding: 15px; font-size: 1rem; border-bottom: none; text-align: center; color: var(--white); }
.btn .ph-whatsapp-logo { font-size: 1.25em; }
@media (max-width: 880px) {
  .topnav-cta { display: none; }
  .topnav-mobile { display: flex; }
  .topnav-inner { padding-left: 16px; padding-right: 16px; }
  .topnav-brand .la-logo-pill-sm img { height: 44px; }
}
@media (max-width: 360px) {
  .topnav-cta-mobile { display: none; }
}

/* ── Article ── */
.res-main { padding: 48px 0 88px; }
.res-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.res-crumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.res-crumbs a { color: var(--slate); font-weight: 600; }
.res-crumbs a:hover { text-decoration: underline; }

.res-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 14px;
}
.res-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glacier); }

.res-wrap h1 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -0.015em;
  color: var(--marine-ink); margin-bottom: 18px;
}
.res-meta { font-size: 0.86rem; color: var(--text-3); margin-bottom: 30px; }

/* Encadré « en bref » : la réponse courte, en tête */
.res-bref {
  background: color-mix(in srgb, var(--glacier) 8%, var(--white));
  border: 1px solid color-mix(in srgb, var(--glacier) 26%, transparent);
  border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 40px;
}
.res-bref-title { font-weight: 800; color: var(--slate); font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 8px; }
.res-bref p { color: var(--text-1); font-size: 1.04rem; line-height: 1.6; }
.res-bref ul { margin: 10px 0 0 0; padding-left: 20px; color: var(--text-1); line-height: 1.6; }

.res-body h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.15;
  color: var(--marine); margin: 48px 0 14px;
}
.res-body h3 {
  font-family: var(--f-body); font-weight: 800; font-size: 1.1rem;
  color: var(--marine-ink); margin: 28px 0 10px;
}
.res-body p, .res-body li { font-size: 1.04rem; line-height: 1.7; color: var(--text-2); }
.res-body p { margin-bottom: 14px; }
.res-body ul, .res-body ol { padding-left: 22px; margin-bottom: 16px; }
.res-body li { margin-bottom: 6px; }
.res-body strong { color: var(--text-1); }
.res-body a { color: var(--slate); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.res-body a.btn { text-decoration: none; }

/* Fiche d'une solution : numéro en tête (variante D), fond neutre */
.res-solution {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 24px 10px; margin: 22px 0;
}
.res-solution-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.res-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--marine); color: var(--white); font-weight: 800; font-size: 0.95rem;
}
.res-solution h3 { margin: 0; }
.res-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.res-tag {
  font-size: 0.78rem; font-weight: 700; color: var(--slate);
  background: var(--sand-soft); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 4px 11px;
}

/* Modèle de message à copier */
.res-modele {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  margin: 16px 0 26px; overflow: hidden;
}
.res-modele-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--sand-soft); border-bottom: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 700; color: var(--text-1);
}
.res-copy {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--slate);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 6px 12px; cursor: pointer; transition: var(--tr-fast);
}
.res-copy:hover { border-color: var(--slate); }
.res-copy.ok { color: var(--ok); border-color: var(--ok); }
.res-modele-text {
  margin: 0; padding: 16px 18px; white-space: pre-wrap;
  font-family: var(--f-body); font-size: 0.98rem; line-height: 1.6; color: var(--text-1);
  background: color-mix(in srgb, #25D366 6%, var(--white));
}

/* Tableau comparatif */
.res-table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.res-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.92rem; }
.res-table th, .res-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.res-table th { background: var(--sand-soft); color: var(--text-1); font-weight: 800; font-size: 0.84rem; }
.res-table tr:last-child td { border-bottom: none; }
.res-table td:first-child { font-weight: 700; color: var(--text-1); }

/* Étapes numérotées */
.res-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.res-steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.res-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--marine); font-weight: 800; font-size: 0.9rem;
}

/* Note « à savoir » */
.res-note {
  background: color-mix(in srgb, var(--sunshine) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--sunshine) 32%, transparent);
  border-radius: var(--r-md); padding: 16px 20px; margin: 18px 0 24px;
}
.res-note p { margin: 0; color: var(--text-1); font-size: 0.98rem; }

/* FAQ */
.res-faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; margin-bottom: 12px;
}
.res-faq summary { cursor: pointer; font-weight: 800; color: var(--text-1); font-size: 1.02rem; list-style: none; }
.res-faq summary::-webkit-details-marker { display: none; }
.res-faq summary::after { content: "+"; float: right; color: var(--slate); font-weight: 700; }
.res-faq details[open] summary::after { content: "\2212"; }
.res-faq details p { margin: 10px 0 0; }

/* Appel à l'action de fin d'article */
.res-cta {
  margin-top: 56px; padding: 32px 28px; border-radius: var(--r-lg);
  background: var(--marine); color: var(--white); text-align: center;
}
.res-cta h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--white); margin: 0 0 10px; }
.res-cta p { color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 20px; line-height: 1.6; }
.res-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Autres guides */
.res-more { margin-top: 48px; }
.res-more h2 { margin-top: 0; }
.res-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.res-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; text-decoration: none !important; transition: var(--tr);
}
.res-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--glacier); }
.res-card-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--glacier); margin-bottom: 8px; }
.res-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--marine-ink); margin: 0 0 8px; }
.res-card p { font-size: 0.94rem; color: var(--text-2); line-height: 1.55; margin: 0; }

@media (max-width: 560px) {
  .res-main { padding-top: 32px; }
  .res-wrap { padding: 0 16px; }
  .res-solution { padding: 20px 18px 6px; }
  .res-cta { padding: 28px 20px; }
}
