/* ──────────────────────────────────────────────────────────────────────────
   Centre d'aide Ma Sentinelle — styles cohérents avec la palette landing
   (vert primaire / crème / or). Cohabite avec Bootstrap.
   ────────────────────────────────────────────────────────────────────────── */

:root {
    --aide-green: #1a4a2e;
    --aide-green-mid: #2a6b44;
    --aide-green-light: #e8f0eb;
    --aide-cream: #f7f3eb;
    --aide-gold: #8a6a3a;
    --aide-gold-border: #c9a96e;
    --aide-text: #1a2e1e;
    --aide-text-muted: #7a8c7e;
    --aide-border: #b8d4c0;
}

.aide-page {
    background-color: #fafaf7;
    min-height: calc(100vh - 60px);
    padding: 32px 0 80px;
    color: var(--aide-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.aide-page .container {
    max-width: 920px;
}

/* ── En-tête ── */
.aide-header {
    text-align: center;
    margin-bottom: 40px;
}

.aide-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    color: var(--aide-green);
    margin-bottom: 8px;
}

.aide-lead {
    font-size: 1.05rem;
    color: var(--aide-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ── Cards d'accueil ── */
.aide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.aide-card {
    background: #ffffff;
    border: 1px solid var(--aide-border);
    border-left: 4px solid var(--aide-green-mid);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: var(--aide-text);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 74, 46, 0.08);
    text-decoration: none;
    color: var(--aide-text);
}

.aide-card-faq {
    border-left-color: var(--aide-gold);
}

.aide-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--aide-green-light);
    color: var(--aide-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.aide-card-faq .aide-card-icon {
    background: var(--aide-cream);
    color: var(--aide-gold);
}

.aide-card h2 {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    color: var(--aide-green);
    margin: 0;
    line-height: 1.3;
}

.aide-card p {
    font-size: 0.92rem;
    color: var(--aide-text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.aide-card-meta {
    font-size: 0.82rem;
    color: var(--aide-text-muted);
    margin-top: auto;
    padding-top: 6px;
}

.aide-card-meta .bi {
    margin-right: 4px;
}

/* ── Page guide ── */
.aide-guide {
    max-width: 760px;
}

.aide-breadcrumb {
    font-size: 0.88rem;
    color: var(--aide-text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aide-breadcrumb a {
    color: var(--aide-green-mid);
    text-decoration: none;
}

.aide-breadcrumb a:hover {
    text-decoration: underline;
}

.aide-guide-header h1 {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--aide-green);
    margin-bottom: 8px;
}

.aide-guide-header {
    margin-bottom: 28px;
}

/* ── Steps ── */
.doc-step {
    margin: 28px 0;
    padding: 24px 24px 20px;
    background: #ffffff;
    border: 1px solid var(--aide-border);
    border-radius: 8px;
}

.doc-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3ef;
}

.doc-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--aide-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.doc-step-title {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: var(--aide-green);
    margin: 0;
    line-height: 1.3;
}

.doc-step-body p,
.doc-step-body ul,
.doc-step-body ol {
    font-size: 0.97rem;
    color: var(--aide-text);
    line-height: 1.6;
}

.doc-step-body ul,
.doc-step-body ol {
    padding-left: 22px;
}

.doc-step-body li {
    margin-bottom: 4px;
}

.doc-step-body strong {
    color: var(--aide-green);
}

.doc-step-body em {
    color: var(--aide-text-muted);
    font-style: italic;
}

/* ── Screenshots ── */
.doc-screenshot {
    margin: 16px 0;
}

.doc-screenshot img {
    max-width: 100%;
    border: 1px solid var(--aide-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(26, 74, 46, 0.06);
}

.doc-screenshot figcaption {
    font-size: 0.85rem;
    color: var(--aide-text-muted);
    font-style: italic;
    margin-top: 6px;
    padding-left: 4px;
}

/* ── Callouts ── */
.doc-callout {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid;
}

.doc-callout-info {
    background: var(--aide-green-light);
    border-color: var(--aide-green-mid);
}

.doc-callout-tip {
    background: var(--aide-cream);
    border-color: var(--aide-gold-border);
}

.doc-callout-warning {
    background: #fdf6e3;
    border-color: #c9a040;
}

.doc-callout-danger {
    background: #fde2db;
    border-color: #c0392b;
}

.doc-callout-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.doc-callout-info .doc-callout-icon {
    color: var(--aide-green);
}

.doc-callout-tip .doc-callout-icon {
    color: var(--aide-gold);
}

.doc-callout-warning .doc-callout-icon {
    color: #b3851e;
}

.doc-callout-danger .doc-callout-icon {
    color: #c0392b;
}

.doc-callout-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--aide-text);
}

.doc-callout-content {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--aide-text);
}

.doc-callout-content a {
    color: var(--aide-green-mid);
}

/* ── Pager ── */
.aide-pager {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--aide-border);
    gap: 12px;
    flex-wrap: wrap;
}

.aide-pager a {
    color: var(--aide-green-mid);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid var(--aide-border);
    border-radius: 6px;
    background: #ffffff;
    transition: background 0.12s ease;
}

.aide-pager a:hover {
    background: var(--aide-green-light);
}

.aide-pager-prev .bi {
    margin-right: 4px;
}

.aide-pager-next .bi {
    margin-left: 4px;
}

/* ── FAQ (accordéon natif HTML <details>) ── */
.aide-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.aide-faq-item {
    background: #ffffff;
    border: 1px solid var(--aide-border);
    border-left: 4px solid var(--aide-green-mid);
    border-radius: 6px;
    padding: 14px 18px;
    transition: box-shadow 0.12s ease;
}

.aide-faq-item[open] {
    box-shadow: 0 2px 8px rgba(26, 74, 46, 0.06);
}

.aide-faq-item summary {
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--aide-green);
    list-style: none;
    padding: 4px 0;
    position: relative;
    padding-right: 24px;
}

.aide-faq-item summary::-webkit-details-marker { display: none; }
.aide-faq-item summary::marker { content: ""; }

.aide-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--aide-green-mid);
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.aide-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.aide-faq-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef3ef;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--aide-text);
}

.aide-faq-body p,
.aide-faq-body ul,
.aide-faq-body ol {
    margin-bottom: 10px;
}

.aide-faq-body ul,
.aide-faq-body ol {
    padding-left: 22px;
}

.aide-faq-body strong { color: var(--aide-green); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .aide-header h1 { font-size: 1.85rem; }
    .aide-guide-header h1 { font-size: 1.6rem; }
    .doc-step { padding: 18px 16px; }
    .aide-pager { flex-direction: column; }
    .aide-pager a { text-align: center; }
}
