/*
 * SYNEDUC as a union: accreditation, companies, community.
 *
 * The pages that say what SYNEDUC is (accreditation, verification, companies,
 * community, the home page's blocks) share these few classes, built on the
 * tokens of syneduc.css, so they read as the same site in both themes.
 */

.sy-page-hero { padding: 4rem 0 3rem; background: var(--bg-light); }
.sy-page-hero .hero-badge { margin-bottom: 1rem; }
.sy-page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; color: var(--secondary); margin: 0 0 1rem; max-width: 820px; }
.sy-page-hero h1 .highlight { color: var(--primary); }
.sy-page-hero .lead { font-size: 1.1rem; line-height: 1.8; color: var(--text-gray); max-width: 760px; margin: 0; }
.sy-page-hero .sy-actions { margin-top: 2rem; }

.sy-section { padding: 4.5rem 0; }
.sy-section.alt { background: var(--bg-light); }
.sy-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--secondary); margin: 0 0 .75rem; }
.sy-section .sy-intro { color: var(--text-gray); line-height: 1.8; max-width: 760px; margin: 0 0 2.5rem; }
.sy-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.sy-section-head .sy-intro { margin-bottom: 0; }

.sy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.sy-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .sy-grid.three { grid-template-columns: 1fr; } }

.sy-card {
    background: var(--light); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; transition: var(--transition);
}
.sy-card:hover { box-shadow: var(--shadow-lg); }
.sy-card .sy-icon {
    width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(73, 187, 189, .12); color: var(--primary); font-size: 1.35rem;
}
.sy-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--secondary); margin: 0; }
.sy-card p { color: var(--text-gray); line-height: 1.7; margin: 0; }
.sy-card ul, .sy-card ol { margin: 0; padding-left: 1.1rem; color: var(--text-gray); line-height: 1.8; }
.sy-card .sy-card-foot { margin-top: auto; padding-top: .5rem; }
.sy-card a.sy-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.sy-card a.sy-link:hover { gap: .65rem; }

.sy-steps { list-style: none; counter-reset: sy-step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sy-steps li {
    counter-increment: sy-step; position: relative; padding: 1.25rem 1.5rem 1.25rem 4.5rem;
    background: var(--light); border: 1px solid var(--border-color); border-radius: 14px;
}
.sy-steps li::before {
    content: counter(sy-step); position: absolute; left: 1.25rem; top: 1.2rem; width: 2.2rem; height: 2.2rem;
    border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.sy-steps strong { display: block; color: var(--secondary); margin-bottom: .2rem; }
.sy-steps span { color: var(--text-gray); line-height: 1.7; }

.sy-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.sy-actions a { text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }

/* "Accrédité SYNEDUC": the mark a centre carries while its accreditation holds. */
.sy-badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 50px;
    background: rgba(16, 185, 129, .12); color: #059669; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
body.dark-theme .sy-badge { color: #34d399; }
.sy-badge.pending { background: rgba(245, 158, 11, .14); color: #b45309; }
.sy-badge.off { background: rgba(105, 105, 132, .14); color: var(--text-gray); }

/* Verification: one question, one answer. */
.sy-verify { display: flex; gap: .5rem; max-width: 640px; background: var(--light); border: 1.5px solid var(--border-color); border-radius: 50px; padding: .375rem .375rem .375rem 1.25rem; box-shadow: var(--shadow); }
.sy-verify input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--main_font); font-size: 1rem; color: var(--secondary); }
.sy-verify button { flex-shrink: 0; background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: .75rem 1.5rem; font-family: var(--main_font); font-weight: 600; cursor: pointer; }
.sy-verify button:hover { background: var(--primary-dark); }
.sy-hint { color: var(--text-gray); font-size: .875rem; margin-top: .75rem; }

.sy-result { max-width: 760px; margin-top: 2rem; background: var(--light); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.75rem; }
.sy-result.ok { border-left: 5px solid #10b981; }
.sy-result.warn { border-left: 5px solid #f59e0b; }
.sy-result.none { border-left: 5px solid var(--border-color); }
.sy-result h2 { font-size: 1.3rem; margin: 0 0 .5rem; color: var(--secondary); }
.sy-result dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1.25rem 0 0; }
.sy-result dt { color: var(--text-gray); font-weight: 500; }
.sy-result dd { margin: 0; color: var(--secondary); font-weight: 600; }
@media (max-width: 576px) { .sy-result dl { grid-template-columns: 1fr; gap: .15rem; } .sy-result dd { margin-bottom: .6rem; } }

.sy-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.sy-tags span { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 50px; padding: .2rem .7rem; font-size: .8rem; color: var(--secondary); font-weight: 500; }

/* A member: an organisation's mark, its name and a line about it. */
.sy-member { display: flex; align-items: center; gap: 1rem; background: var(--light); border: 1px solid var(--border-color); border-radius: 14px; padding: 1rem 1.25rem; color: inherit; transition: var(--transition); }
a.sy-member:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.sy-member img, .sy-member .sy-initial { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--bg-light); }
.sy-member .sy-initial { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); font-size: 1.3rem; }
.sy-member strong { display: block; color: var(--secondary); line-height: 1.35; }
.sy-member small { display: block; color: var(--text-gray); }

.sy-empty { background: var(--light); border: 1px dashed var(--border-color); border-radius: 14px; padding: 1.75rem; color: var(--text-gray); text-align: center; }

.sy-note { font-size: .875rem; color: var(--text-gray); line-height: 1.7; }
.sy-note a { color: var(--primary); font-weight: 600; }

/* A centre's registry entry, under its name on its profile. */
.sy-accreditation-strip {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, .06); border: 1px solid rgba(16, 185, 129, .25); border-radius: 14px;
}
.sy-accreditation-strip .sy-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(16, 185, 129, .14); color: #059669; flex-shrink: 0; }
.sy-accreditation-strip .grow { flex: 1 1 280px; min-width: 0; }
.sy-accreditation-strip strong { display: block; color: var(--secondary); }
.sy-accreditation-strip .sy-meta { display: block; color: var(--text-gray); font-size: .9rem; }
.sy-accreditation-strip .sy-tags { margin-top: .5rem; }
.sy-accreditation-strip > a { color: var(--primary); font-weight: 600; white-space: nowrap; }

/* A figure: a real count, and what it counts. */
.sy-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .sy-stats { grid-template-columns: repeat(2, 1fr); } }
/* The advantages shown in place of the figures are words, wider than a number. */
@media (max-width: 520px) { .sy-stats { grid-template-columns: 1fr; } }
.sy-stat { background: var(--light); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; text-align: center; }
.sy-stat strong { display: block; font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.sy-stat span { color: var(--text-gray); font-weight: 500; }

/* The figures band stays dark in both themes; its digits must stay light.
   (syneduc.css colours them var(--light), which the dark theme turns dark.) */
body.dark-theme .stats-section .stat-number { color: #fff; }

/* The contact form (/contact). */
.sy-contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .sy-contact { grid-template-columns: 1fr; } }
.sy-form { display: flex; flex-direction: column; gap: 1.25rem; background: var(--light); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.75rem; }
.sy-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 576px) { .sy-form-row { grid-template-columns: 1fr; } }
.sy-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.sy-field label { font-weight: 600; color: var(--secondary); font-size: .925rem; }
.sy-field .sy-optional { font-weight: 400; color: var(--text-gray); }
.sy-field input, .sy-field select, .sy-field textarea {
    width: 100%; border: 1.5px solid var(--border-color); border-radius: 10px; padding: .7rem .9rem;
    background: var(--light); color: var(--secondary); font-family: var(--main_font); font-size: 1rem;
}
.sy-field input:focus, .sy-field select:focus, .sy-field textarea:focus { outline: none; border-color: var(--primary); }
.sy-field textarea { resize: vertical; min-height: 140px; }
.sy-error { color: #dc2626; font-size: .85rem; }
.sy-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sy-form button { align-self: flex-start; background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: .8rem 1.6rem; font-family: var(--main_font); font-weight: 600; cursor: pointer; }
.sy-form button:hover { background: var(--primary-dark); }
.sy-contact-list { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: .5rem; }
.sy-contact-list i { color: var(--primary); width: 1.25rem; }

/* The status tables of the paths (/accreditation, /companies). */
.sy-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 16px; background: var(--light); }
.sy-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.sy-table th, .sy-table td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); line-height: 1.6; }
.sy-table tbody tr:last-child th, .sy-table tbody tr:last-child td { border-bottom: none; }
.sy-table thead th { color: var(--primary); font-size: 1.05rem; font-weight: 700; background: var(--bg-light); }
.sy-table tbody th { color: var(--secondary); font-weight: 600; width: 18%; }
.sy-table td { color: var(--text-gray); }
.sy-sr { position: absolute; left: -9999px; }
.sy-callout { display: flex; gap: .85rem; align-items: flex-start; margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--primary); border-radius: 12px; background: rgba(73, 187, 189, .08); color: var(--secondary); line-height: 1.7; }
.sy-callout i { color: var(--primary); margin-top: .3rem; }
.sy-card .sy-price { color: var(--secondary); font-weight: 600; font-size: .925rem; }
.sy-card .sy-price i { color: var(--primary); margin-right: .35rem; }

/* Filters of a list by status (the home page's registry): plain links. */
.sy-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.sy-filters a {
    padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border-color);
    color: var(--secondary); font-weight: 500; font-size: .9rem; text-decoration: none; background: var(--light);
}
.sy-filters a:hover { border-color: var(--primary); color: var(--primary); }
.sy-filters a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Where a page sits on the site (partials/breadcrumb). */
.sy-breadcrumb { margin: 0 0 1.25rem; font-size: .875rem; }
.sy-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; color: var(--text-gray); }
.sy-breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.sy-breadcrumb li + li::before { content: "/"; color: var(--border-color); }
.sy-breadcrumb a { color: var(--primary); font-weight: 600; text-decoration: none; }
.sy-breadcrumb a:hover { opacity: .75; }
.sy-breadcrumb span { overflow-wrap: anywhere; }

/* Catalogues (certifications, fiches métier): search, filters, cards, pager. */
.sy-cert-search { display: grid; gap: 1rem; background: var(--light); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.25rem 1.35rem; margin-bottom: 1.25rem; }
.sy-cert-search .row-q { display: flex; gap: .5rem; }
.sy-cert-search .row-q input { flex: 1; min-width: 0; }
.sy-cert-search .filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.sy-cert-search label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-gray); margin-bottom: .25rem; }
.sy-cert-search input, .sy-cert-search select { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border-color); border-radius: 10px;
    background: var(--bg-light); color: var(--secondary); font-family: inherit; font-size: .92rem; }
.sy-cert-search button { padding: .6rem 1.1rem; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sy-cert-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.sy-cert-bar .count { font-weight: 600; color: var(--secondary); }
.sy-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sy-chips a { display: inline-flex; gap: .4rem; align-items: center; padding: .25rem .7rem; border-radius: 999px; font-size: .82rem;
    background: var(--bg-light); border: 1px solid var(--border-color); color: var(--secondary); text-decoration: none; }
.sy-chips a:hover { border-color: var(--primary); color: var(--primary); }
.sy-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.sy-cert { display: flex; flex-direction: column; gap: .45rem; background: var(--light); border: 1px solid var(--border-color);
           border-radius: 16px; padding: 1.25rem 1.35rem; text-decoration: none; color: inherit; transition: border-color .15s; }
.sy-cert:hover { border-color: var(--primary); }
.sy-cert .kind { font-size: .75rem; font-weight: 700; letter-spacing: .4px; color: var(--primary); text-transform: uppercase; }
.sy-cert h3 { font-size: 1.05rem; margin: 0; color: var(--secondary); line-height: 1.35; }
.sy-cert .meta { font-size: .85rem; color: var(--text-gray); margin: 0; }
.sy-cert .meta i { color: var(--primary); width: 1rem; }
.sy-cert .foot { margin-top: auto; padding-top: .5rem; }
.sy-pages { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; margin: 2rem 0 0; }
.sy-pages a, .sy-pages span { min-width: 2.4rem; padding: .5rem .8rem; border-radius: 10px; text-align: center; font-weight: 600;
    border: 1px solid var(--border-color); background: var(--light); color: var(--secondary); text-decoration: none; }
.sy-pages a:hover { border-color: var(--primary); color: var(--primary); }
.sy-pages .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.sy-pages .gap, .sy-pages .off { border-color: transparent; background: transparent; color: var(--text-gray); }

/* A detail page (a certification, a fiche métier): facts, prose, centres. */
.sy-cert-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; color: var(--text-gray); font-size: .95rem; }
.sy-cert-meta i { color: var(--primary); margin-right: .35rem; }
.sy-prose { max-width: 820px; line-height: 1.7; color: var(--text-gray); }
.sy-prose ul { padding-left: 1.2rem; }
.sy-prose h3, .sy-programme-title { font-size: 1.1rem; color: var(--secondary); margin: 1.75rem 0 .5rem; }
.sy-prose > :first-child { margin-top: 0; }
.sy-table-wrap + .sy-prose { margin-top: 1.75rem; }
.sy-centre-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sy-section .sy-prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.sy-section .sy-prose h2:first-child { margin-top: 0; }
