/* PHARMASPEED — styles des pages de contenu (À propos, Contact, Aide, CGU, Confidentialité) */

.cms { padding-block: clamp(28px, 4vw, 52px); }

/* En-tête de page */
.cms-hero { text-align: center; max-width: 780px; margin: 0 auto clamp(28px, 4vw, 48px); }
.cms-hero .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 16px; }
.cms-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; margin-bottom: 14px; }
.cms-hero p { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-600); line-height: 1.6; }

/* Bandeau fil d'ariane léger */
.cms-crumb { font-size: 13px; color: var(--ink-500); margin-bottom: 20px; }
.cms-crumb a { color: var(--ink-600); font-weight: 600; }
.cms-crumb a:hover { color: var(--accent); }

/* Sections génériques */
.cms-section { margin-bottom: clamp(34px, 5vw, 60px); }
.cms-section > h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 12px; }
.cms-section .lead { color: var(--ink-600); font-size: 16px; line-height: 1.7; max-width: 70ch; }

/* Histoire / mission : 2 colonnes texte + carte */
.cms-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.cms-split.rev { grid-template-columns: .9fr 1.1fr; }
.cms-prose p { color: var(--ink-700); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.cms-aside { background: linear-gradient(150deg, var(--accent-soft), #fff); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 20px; text-align: center; box-shadow: var(--sh-xs); }
.stat-tile .v { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-tile .l { font-size: 13.5px; color: var(--ink-600); font-weight: 600; margin-top: 8px; }

/* Cartes valeurs / atouts */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-xs); transition: .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.feature-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature-card .ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-600); font-size: 14.5px; line-height: 1.65; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-xs); }
.contact-line .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line h4 { font-size: 14px; color: var(--ink-900); margin-bottom: 3px; }
.contact-line p, .contact-line a { font-size: 14.5px; color: var(--ink-600); line-height: 1.5; }
.contact-line a:hover { color: var(--accent); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); box-shadow: var(--sh-sm); }
.cms-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cms-field label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.cms-field input, .cms-field textarea { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 15px; background: var(--surface-2); outline: none; font-size: 15px; font-family: inherit; transition: .2s; }
.cms-field input { height: 48px; }
.cms-field textarea { min-height: 130px; resize: vertical; }
.cms-field input:focus, .cms-field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-ring); }

/* Aide : sous-navigation + sections */
.help-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }
.help-nav a { padding: 9px 16px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-700); transition: .18s; }
.help-nav a:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.help-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--sh-xs); margin-bottom: 20px; scroll-margin-top: calc(var(--header-h, 120px) + 20px); }
.help-block h2 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 11px; }
.help-block h2 .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.help-block h2 .ic svg { width: 21px; height: 21px; }
.help-steps { counter-reset: step; display: grid; gap: 12px; }
.help-steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: var(--ink-700); font-size: 15px; line-height: 1.6; }
.help-steps li::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.status-grid .row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-md); font-size: 14.5px; color: var(--ink-700); }
.status-grid .row .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pay-list, .ship-list { display: grid; gap: 10px; }
.pay-list li, .ship-list li { list-style: none; display: flex; gap: 11px; align-items: center; color: var(--ink-700); font-size: 15px; }
.pay-list svg, .ship-list svg { width: 20px; height: 20px; color: var(--green-500); flex-shrink: 0; }

/* FAQ / accordéon */
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq summary { padding: 16px 20px; font-weight: 700; color: var(--ink-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-600); font-size: 14.5px; line-height: 1.7; }

/* Pages légales (CGU, Confidentialité) */
.legal { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); box-shadow: var(--sh-xs); }
.legal .updated { font-size: 13px; color: var(--ink-500); margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.legal h2 { font-size: 19px; margin: 30px 0 10px; color: var(--ink-900); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 15.5px; margin: 18px 0 6px; color: var(--ink-800); }
.legal p, .legal li { color: var(--ink-700); font-size: 15px; line-height: 1.8; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; display: grid; gap: 6px; }
.legal ul li { list-style: disc; }
.legal .note { background: var(--accent-soft); border-radius: var(--r-md); padding: 14px 18px; color: var(--ink-700); font-size: 14px; margin: 14px 0; }

@media (max-width: 860px){
  .cms-split, .cms-split.rev, .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
}
