/*
 * Page « À propos » de PAPE (03/11/2026) : aux couleurs du thème, simple et fluide.
 * Tout est limité à .apropos : l'en-tête et le pied du site ne sont pas touchés.
 * Copie conforme dans Esurveillance (public/assets/css/a-propos-pape.css), pour
 * que l'aperçu montre ce que verra le public.
 */
.apropos {
    --ap-vert: #2eca7f;
    --ap-vert-fonce: #13733f;
    --ap-vert-fond: #ecfbf3;
    --ap-marine: #1a2d62;
    --ap-marine-fond: #f1f4fb;
    --ap-texte: #334155;
    --ap-trait: #e2e8f0;
    --ap-rayon: 16px;
    --ap-duree: .2s;
    padding: 56px 0 24px;
    color: var(--ap-texte);
    font-family: 'Mulish', sans-serif;
}

.apropos-logo {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 96px;
    margin: 0 auto 32px;
}

.apropos-texte {
    max-width: 880px;
    margin: 0 auto;
    animation: apropos-entree .35s ease-out;
}

@keyframes apropos-entree {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Le grand titre */
.apropos-texte header {
    margin: 0 0 32px;
    padding: 40px 32px;
    background: var(--ap-marine);
    border-bottom: 4px solid var(--ap-vert);
    border-radius: var(--ap-rayon);
    text-align: center;
}

.apropos-texte header .container {
    padding: 0;
}

.apropos-texte header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
}

.apropos-texte p {
    margin: 0 0 20px;
    color: var(--ap-texte);
    font-size: 1.0625rem;
    line-height: 1.75;
    text-align: left;
}

.apropos-texte h3 {
    margin: 40px 0 12px;
    color: var(--ap-marine);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
}

.apropos-texte > ol,
.apropos-texte > ul:not(.features-list) {
    margin: 0 0 20px;
    padding-left: 24px;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.apropos-texte > ol > li {
    list-style: decimal;
}

.apropos-texte > ul:not(.features-list) > li {
    list-style: disc;
}

/* Un tableau écrit dans le texte : il défile seul sur un petit écran. */
.apropos table {
    display: block;
    max-width: 100%;
    margin: 0 0 20px;
    overflow-x: auto;
    border-collapse: collapse;
}

.apropos table td {
    padding: 8px 12px;
    border: 1px solid var(--ap-trait);
    vertical-align: top;
}

.apropos a {
    color: var(--ap-vert-fonce);
    text-decoration: underline;
}

/* Les encadrés */
.apropos-texte .highlight {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--ap-vert-fond);
    border-left: 4px solid var(--ap-vert);
    border-radius: 0 12px 12px 0;
}

.apropos-texte .highlight p,
.apropos-texte .conclusion p:last-child {
    margin-bottom: 0;
}

.apropos-texte .highlight p {
    color: var(--ap-marine);
    font-weight: 600;
}

.apropos-texte .conclusion {
    margin: 36px 0 0;
    padding: 28px;
    background: var(--ap-marine-fond);
    border-radius: var(--ap-rayon);
}

/* Les fonctionnalités, en cartes */
.apropos-texte .features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
}

.apropos-texte .features-list li {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ap-trait);
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.6;
    transition: border-color var(--ap-duree), box-shadow var(--ap-duree), transform var(--ap-duree);
}

.apropos-texte .features-list li:hover {
    border-color: var(--ap-vert);
    box-shadow: 0 10px 24px rgba(26, 45, 98, .08);
    transform: translateY(-2px);
}

.apropos-texte .features-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ap-marine);
    font-weight: 700;
}

/* Les questions et les photos */
.apropos-questions {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: start;
}

.apropos-questions--seule {
    grid-template-columns: minmax(0, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

.section-title:has(+ .apropos-questions--seule) {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.apropos-questions .accordion-item {
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--ap-trait);
    border-radius: 14px;
    overflow: hidden;
}

.apropos-questions .accordion-header {
    margin: 0;
    padding: 0;
    border: 0;
}

.apropos-questions .accordion-button {
    min-height: 56px;
    padding: 14px 20px;
    background: #fff;
    color: var(--ap-marine);
    font-size: 1.0625rem;
    font-weight: 700;
    box-shadow: none;
    transition: background var(--ap-duree);
}

.apropos-questions .accordion-button:not(.collapsed) {
    background: var(--ap-vert-fond);
    color: var(--ap-marine);
}

.apropos-questions .accordion-button:focus-visible {
    outline: 2px solid var(--ap-marine);
    outline-offset: -2px;
}

.apropos-questions .accordion-body {
    padding: 16px 20px 20px;
    color: var(--ap-texte);
    font-size: 1rem;
    line-height: 1.7;
}

.apropos-questions .accordion-body p {
    margin: 0 0 8px;
}

/* Le thème retire les puces de toutes les listes : on les remet ici. */
.apropos-questions .accordion-body ul,
.apropos-questions .accordion-body ol {
    margin: 0 0 8px;
    padding-left: 22px;
}

.apropos-questions .accordion-body li {
    margin-bottom: 6px;
}

.apropos-questions .accordion-body ul > li {
    list-style: disc;
}

.apropos-questions .accordion-body ol > li {
    list-style: decimal;
}

.apropos-questions .accordion-body strong {
    color: inherit;
    font-weight: 700;
}

.apropos-questions .accordion-body li::marker {
    color: var(--ap-vert-fonce);
}

.apropos-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.apropos-photos img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.apropos-photos img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

@media (max-width: 991px) {
    .apropos-questions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
    .apropos { padding-top: 32px; }
    .apropos-texte header { padding: 28px 20px; }
    .apropos-texte .conclusion { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .apropos-texte { animation: none; }
    .apropos * { transition: none !important; }
    .apropos-texte .features-list li:hover { transform: none; }
}
