/* ===========================
   211 Organisation — feuille de style
   Thème bordeaux & or
   =========================== */

:root {
    --c-primary:        #7a1f34;
    --c-primary-light:  #9c3350;
    --c-primary-dark:   #55121f;
    --c-accent:         #a8791f;
    --c-accent-soft:    #c9a24a;
    --c-urgent:         #a01722;
    --c-urgent-dark:    #6e0e17;
    --c-urgent-bg:      #fbe6e6;
    --c-surface:        #faf7f2;
    --c-surface-2:      #f1e9dd;
    --c-border:         #e0d3bf;
    --c-text:           #2a1a1d;
    --c-text-soft:      #5c4a4d;
    --c-text-muted:     #7c6a6c;
    --c-ok-bg:          #e6f1e6;
    --c-ok:             #2f6b34;
    --c-err-bg:         #fbe6e6;
    --c-err:            #8f1a24;
    --r-sm:             4px;
    --r-md:             8px;
    --r-lg:             12px;
    --maxw:             1100px;
    --shadow-sm:        0 1px 2px rgba(85,18,31,.07), 0 1px 1px rgba(85,18,31,.05);
    --shadow-md:        0 4px 16px rgba(85,18,31,.12);
    --t:                200ms ease;
    --font-title:       Georgia, "Times New Roman", "Iowan Old Style", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-surface);
}

h1, h2, h3, .brand-text strong {
    font-family: var(--font-title);
    letter-spacing: .2px;
}

a {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:hover { color: var(--c-primary-dark); }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ----- en-tête ----- */

.site-header {
    background: var(--c-primary);
    color: #fff;
    border-bottom: 3px solid var(--c-primary-dark);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    font-size: 32px;
    color: var(--c-accent);
}
.brand-text strong {
    display: block;
    font-size: 22px;
    letter-spacing: 1px;
}
.brand-text small {
    display: block;
    font-size: 11px;
    opacity: .85;
    letter-spacing: .5px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--t);
}
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.site-nav a.active {
    font-weight: 600;
    border-bottom-color: #fff;
}
.site-nav a.cta {
    background: var(--c-accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--r-md);
    border: none;
    font-weight: 600;
}
.site-nav a.cta:hover {
    background: var(--c-accent-soft);
    color: var(--c-primary-dark);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    margin: 5px 0;
}

@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: var(--c-primary-dark);
        padding: 16px 20px;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 0; }
}

/* ----- bandeau urgence ----- */

.emergency-strip {
    background: var(--c-urgent-bg);
    color: var(--c-urgent);
    border: 1px solid var(--c-urgent);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin: 16px 0 0;
    font-size: 14px;
}
.emergency-strip strong { color: var(--c-urgent-dark); }

.simulation-banner {
    background: #fff8db;
    border: 1px solid #f0c84b;
    color: #6b5400;
    padding: 8px 14px;
    border-radius: var(--r-md);
    margin: 16px 0;
    font-size: 13px;
    text-align: center;
}

/* ----- contenu ----- */

.site-main {
    padding: 24px 0 60px;
}
.hero {
    background: linear-gradient(140deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 40px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}
.hero h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.25;
}
.hero .lead {
    font-size: 17px;
    line-height: 1.55;
    max-width: 800px;
    margin: 0 0 24px;
    color: #fff;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero .small {
    color: rgba(255,255,255,.85);
    font-size: 13px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
@media (max-width: 880px) {
    .cards { grid-template-columns: 1fr; }
}

.card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}
.card h2 { font-size: 18px; margin-top: 0; }
.card p  { color: var(--c-text-soft); }

.callout {
    background: var(--c-surface-2);
    border-left: 4px solid var(--c-primary);
    padding: 18px 22px;
    border-radius: var(--r-md);
    margin: 24px 0;
    color: var(--c-text);
}
.callout h2 { margin-top: 0; }
.callout.success { background: var(--c-ok-bg); border-color: var(--c-ok); color: var(--c-ok); }
.callout.error   { background: var(--c-err-bg); border-color: var(--c-err); color: var(--c-err); }

/* ----- typographie éditoriale ----- */

article h1 {
    font-size: 28px;
    margin: 0 0 18px;
    line-height: 1.25;
}
article h2 {
    font-size: 21px;
    margin-top: 32px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c-border);
}
article h3 {
    font-size: 17px;
    margin-top: 24px;
    margin-bottom: 6px;
}
article p { margin: 10px 0; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 4px; }
.lead { font-size: 17px; color: var(--c-text-soft); }

code {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 2px 6px;
    font-size: .92em;
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}

.toc {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    padding: 14px 20px;
    border-radius: var(--r-md);
    margin: 16px 0 24px;
    font-size: 14px;
}
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 6px 0 0; }

.law-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 16px 0;
}
.law-table th {
    background: var(--c-primary);
    color: #fff;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
}
.law-table td {
    border-top: 1px solid var(--c-border);
    padding: 10px 12px;
    vertical-align: top;
}

.number-card {
    background: #fff;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    padding: 16px 20px;
    margin-bottom: 14px;
    border-left: 4px solid var(--c-primary);
}
.number-card.urgent {
    border-left-color: var(--c-urgent);
    background: #fff8f8;
}
.number-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 12px 0 24px;
}
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }
.team-member {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 16px 18px;
}
.team-member h3 { margin: 0 0 4px; font-size: 17px; }
.team-member .role {
    color: var(--c-text-muted);
    font-size: 13px;
    margin: 0 8px 8px 0;
}

/* ----- formulaires ----- */

.form {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 22px;
    max-width: 640px;
    box-shadow: var(--shadow-sm);
}
.form label {
    display: block;
    margin: 8px 0 4px;
    font-weight: 600;
    font-size: 14px;
}
.form input, .form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font: inherit;
    background: var(--c-surface);
}
.form input:focus, .form textarea:focus {
    outline: 2px solid var(--c-primary-light);
    outline-offset: 2px;
    background: #fff;
}
.form .small { font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }

.button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--r-md);
    background: #fff;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--t), color var(--t);
}
.button:hover {
    background: var(--c-primary);
    color: #fff;
}
.button.primary {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.button.primary:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
}
.button:focus {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* ----- tchat ----- */

.chat-page {
    max-width: 760px;
    margin: 0 auto;
}
.chat-disclaimer {
    background: var(--c-ok-bg);
    border: 1px solid var(--c-ok);
    color: var(--c-ok);
    padding: 12px 16px;
    border-radius: var(--r-md);
    margin: 12px 0 18px;
    font-size: 14px;
}
.chat-disclaimer.offline {
    background: #fff8e1;
    border-color: #f9a825;
    color: #7c6a00;
}
.chat-disclaimer.online {
    background: var(--c-ok-bg);
    border-color: var(--c-ok);
    color: var(--c-ok);
}
.chat-window {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px;
    min-height: 280px;
    max-height: 60vh;
    overflow-y: auto;
}
.chat-empty {
    color: var(--c-text-muted);
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}
.chat-message {
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-bottom: 8px;
    max-width: 80%;
    line-height: 1.4;
    word-break: break-word;
}
.chat-message.side-user {
    background: var(--c-surface-2);
    margin-right: auto;
    border-bottom-left-radius: 2px;
}
.chat-message.side-staff {
    background: var(--c-primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}
.chat-message .who {
    font-size: 11px;
    opacity: .75;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.chat-message .ts {
    font-size: 11px;
    opacity: .55;
    margin-top: 4px;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.chat-form textarea {
    resize: vertical;
    padding: 10px 12px;
    font: inherit;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
}
.chat-form .button { align-self: flex-end; }

/* ----- footer ----- */

.site-footer {
    background: var(--c-primary-dark);
    color: #cbd5e1;
    padding: 24px 0;
    font-size: 14px;
}
.site-footer p { margin: 6px 0; }
.site-footer .small { font-size: 12px; opacity: .9; }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }

/* ===========================
   Actualités / Nos actions
   =========================== */
.news-page > .lead { margin-bottom: 26px; }

.news-list {
    display: grid;
    gap: 24px;
}

.news-item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.news-item .news-title {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--c-primary-dark);
}
.news-date {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--c-text-muted);
}
.news-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 16px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #000;
}
.news-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.news-image {
    margin: 0 0 16px;
}
.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    display: block;
}
.news-body {
    color: var(--c-text-soft);
    margin-bottom: 16px;
}
.news-link { margin: 0; }

/* ===========================
   Accueil — dernières actualités
   =========================== */
.home-news { margin: 40px 0 8px; }
.home-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.home-news-head h2 { margin: 0; }
.home-news-all {
    font-weight: 600;
    white-space: nowrap;
}
.news-teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 880px) {
    .news-teasers { grid-template-columns: 1fr; }
}
.news-teaser {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--t), transform var(--t);
}
.news-teaser:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.news-teaser-img {
    display: block;
    aspect-ratio: 16 / 7;
    background: var(--c-primary-dark);
    overflow: hidden;
}
.news-teaser-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-teaser-body {
    display: block;
    padding: 16px 18px 20px;
}
.news-teaser-date {
    display: block;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-bottom: 6px;
}
.news-teaser-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: var(--c-primary-dark);
    line-height: 1.35;
    margin-bottom: 8px;
}
.news-teaser-excerpt {
    display: block;
    font-size: 14px;
    color: var(--c-text-soft);
}

/* ----- page « Dénoncer un acte pédocriminel » ----- */

.callout.warning {
    background: var(--c-urgent-bg);
    border-color: var(--c-urgent);
    color: #7a1414;
}

.denounce .paths {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0 8px;
}
@media (max-width: 720px) { .denounce .paths { grid-template-columns: 1fr; } }
.path-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.path-card h3 { margin: 0 0 8px; font-size: 17px; }
.path-card p { flex: 1; color: var(--c-text-soft); }
.path-card .button { align-self: flex-start; margin-top: 8px; }

/* Champs supplémentaires du formulaire (select, fichier, cases à cocher) */
.form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font: inherit;
    background: var(--c-surface);
}
.form select:focus {
    outline: 2px solid var(--c-primary-light);
    outline-offset: 2px;
    background: #fff;
}
.form input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    font-size: 14px;
}
.denounce-form fieldset.consent {
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin: 18px 0 8px;
}
.denounce-form fieldset.consent legend {
    font-weight: 600;
    font-size: 14px;
    padding: 0 6px;
}
.denounce-form .check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.45;
}
.denounce-form .check input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex: 0 0 auto;
}

/* FAQ (page Dénoncer) — <details> stylés, cohérents avec le balisage FAQPage */
.faq { margin: 12px 0 8px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 4px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
    list-style: none;
    color: var(--c-primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 1.2em;
    font-weight: 700;
    color: var(--c-primary);
}
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin: 0 0 14px; color: var(--c-text-soft); }
