/* ====================================================================
   FISOI — Formation Incendie Secourisme Océan Indien
   Charte : marine #1B3A6B / rouge #D6242C / ivoire
   ==================================================================== */

/* Polices auto-hebergees dans assets/fonts (RGPD : aucune requete vers Google).
   Regenerer avec `node tools/fonts.js` si les graisses changent. */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-condensed-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-condensed-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-condensed-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-condensed-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/barlow-condensed-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/barlow-condensed-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-3-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-3-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/source-sans-3-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/source-sans-3-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/source-sans-3-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/source-sans-3-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --bleu-fisoi: #1B3A6B;
    --bleu-fonce: #0E2244;
    --bleu-clair: #2A5499;
    --rouge-fisoi: #D6242C;
    --rouge-fonce: #A81B22;
    --ivoire: #F6F3EE;
    --gris-clair: #F4F6F9;
    --gris-moyen: #E2E6EC;
    --gris-texte: #5A6477;
    --noir: #1A1D24;
    --blanc: #FFFFFF;
    --ombre: 0 10px 30px rgba(14, 34, 68, 0.08);
    --ombre-forte: 0 18px 44px rgba(14, 34, 68, 0.16);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-titre: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
    --font-texte: 'Source Sans 3', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --ease-out: cubic-bezier(0, 0, 0.58, 1);
    --motion: 0.55s var(--ease-out);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-texte);
    font-size: 16px;
    line-height: 1.65;
    color: var(--noir);
    background: var(--ivoire);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rouge-fisoi); text-decoration: none; transition: color var(--transition), background var(--transition), transform var(--transition); }
a:hover { color: var(--rouge-fonce); }

h1, h2, h3, h4 {
    font-family: var(--font-titre);
    color: var(--bleu-fisoi);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--gris-texte); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    background: var(--rouge-fisoi);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible {
    outline: 3px solid var(--rouge-fisoi);
    outline-offset: 3px;
}

/* ============== TOPBAR / HEADER ============== */

.topbar {
    background: var(--bleu-fonce);
    color: rgba(255,255,255,.85);
    font-size: 0.82rem;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd4d6; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }

.header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27,58,107,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--motion), background var(--motion);
}
.header.is-scrolled {
    background: rgba(255,255,255,.97);
    box-shadow: 0 10px 28px rgba(14, 34, 68, 0.12);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
    transition: padding var(--motion);
}
.header.is-scrolled .header-inner { padding: 8px 0; }
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 220px;
}
.logo-mark { width: 52px; height: 52px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
    font-family: var(--font-titre);
    font-size: 1.45rem;
    color: var(--bleu-fisoi);
    font-weight: 800;
}
.logo-text small {
    font-size: 0.68rem;
    color: var(--gris-texte);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bleu-fisoi);
    margin: 6px 0;
    border-radius: 2px;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-main ul {
    display: flex;
    list-style: none;
    gap: 2px;
}
.nav-main a {
    display: block;
    padding: 8px 12px;
    color: var(--bleu-fisoi);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 999px;
}
.nav-main a:hover,
.nav-main a.active {
    color: var(--rouge-fisoi);
    background: rgba(214,36,44,.08);
}
.btn-nav {
    padding: 10px 18px;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ============== BUTTONS ============== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--motion), color var(--motion), border-color var(--motion), transform 0.2s var(--ease-out), box-shadow var(--motion);
    text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
    background: var(--rouge-fisoi);
    color: #fff;
    border-color: var(--rouge-fisoi);
}
.btn-primary:hover {
    background: var(--rouge-fonce);
    border-color: var(--rouge-fonce);
    color: #fff;
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.7);
}
.btn-secondary:hover { background: #fff; color: var(--bleu-fisoi); }
.btn-outline {
    background: transparent;
    color: var(--bleu-fisoi);
    border-color: var(--bleu-fisoi);
}
.btn-outline:hover { background: var(--bleu-fisoi); color: #fff; }

/* ============== HERO ============== */

.hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(214,36,44,.22), transparent 42%),
        linear-gradient(135deg, var(--bleu-fisoi) 0%, var(--bleu-fonce) 100%);
    color: #fff;
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 18% 78%, rgba(214, 36, 44, .32), transparent 38%),
        radial-gradient(circle at 92% 12%, rgba(255, 179, 182, .2), transparent 32%);
    animation: hero-mesh 18s var(--ease-out) infinite alternate;
    pointer-events: none;
}
.hero-copy, .hero .trust-card { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 span { color: #ffb3b6; display: block; }
.hero-subtitle {
    font-size: 1.12rem;
    color: rgba(255,255,255,.86);
    margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 28px;
}
.trust-card h2 {
    color: #fff;
    font-size: 1.15rem;
    text-transform: none;
    margin-bottom: 16px;
}
.trust-list { list-style: none; }
.trust-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    font-size: 0.95rem;
}
.trust-list li:last-child { border-bottom: none; }
.trust-list strong { display: block; color: #fff; }
.qualiopi-mark {
    max-width: 240px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 18px;
}

/* ============== SECTIONS ============== */

section { padding: 80px 0; }
.bg-white { background: var(--blanc); }
.bg-grey { background: var(--gris-clair); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.eyebrow {
    display: inline-block;
    color: var(--rouge-fisoi);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}
.section-header p { font-size: 1.08rem; margin-top: 10px; }

/* ============== CATEGORIES ============== */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.cat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--ombre);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(27,58,107,.06);
    transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.cat-card-media {
    height: 168px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bleu-fisoi), var(--bleu-clair));
    position: relative;
}
.cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    display: block;
    transition: transform 0.6s var(--ease-out);
}
.cat-card:hover .cat-card-media img { transform: scale(1.06); }
.cat-card-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cat-card h3 { margin-bottom: 8px; }
.cat-card ul { list-style: none; margin: 12px 0 20px; flex: 1; }
.cat-card li {
    position: relative;
    padding: 5px 0 5px 16px;
    color: var(--gris-texte);
    font-size: 0.95rem;
}
.cat-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rouge-fisoi);
}

/* ============== INDICATORS ============== */

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}
.indicator-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}
.indicator-table th,
.indicator-table td {
    text-align: left;
    padding: 16px 22px;
    border-bottom: 1px solid var(--gris-moyen);
}
.indicator-table th {
    background: var(--bleu-fisoi);
    color: #fff;
    font-family: var(--font-titre);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .95rem;
}
.indicator-table tr:last-child td { border-bottom: none; }
.indicator-table td strong { color: var(--bleu-fisoi); }
.note { font-size: .9rem; color: var(--gris-texte); margin-top: 14px; }

/* ============== FILTER / CARDS ============== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}
.filter-bar button {
    border: 1px solid var(--gris-moyen);
    background: #fff;
    color: var(--bleu-fisoi);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--motion), color var(--motion), border-color var(--motion), transform 0.2s var(--ease-out);
}
.filter-bar button:active { transform: scale(0.97); }
.filter-bar button.is-active,
.filter-bar button:hover {
    background: var(--bleu-fisoi);
    color: #fff;
    border-color: var(--bleu-fisoi);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.formation-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(27,58,107,.06);
    transition: transform var(--transition), box-shadow var(--transition);
}
.formation-card[hidden] {
    display: none !important;
}
.formation-card:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.formation-card-media {
    height: 188px;
    background: linear-gradient(135deg, var(--bleu-fisoi), var(--bleu-clair));
    position: relative;
    overflow: hidden;
}
.formation-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 34, 68, .08), rgba(14, 34, 68, .42));
    pointer-events: none;
}
.formation-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}
.formation-card-media img.is-missing { display: none; }
.formation-card:hover .formation-card-media img { transform: scale(1.06); }
.cat-card-media img.is-missing { display: none; }

/* Wrapper <picture> (WebP + repli JPG) : ne doit pas casser le cadrage des medias */
.cat-card-media picture,
.formation-card-media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--rouge-fisoi);
    color: #fff;
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
}
.formation-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.formation-card .subtitle {
    color: var(--rouge-fisoi);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.formation-card h3 { margin-bottom: 8px; }
.formation-card p { flex: 1; }
.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
    font-size: .82rem;
    color: var(--gris-texte);
}
.meta span {
    background: var(--ivoire);
    padding: 4px 10px;
    border-radius: 999px;
}
.facts {
    list-style: none;
    margin: 4px 0 14px;
    padding: 12px 0 0;
    border-top: 1px solid var(--gris-moyen);
    font-size: 0.88rem;
}
.facts li {
    display: grid;
    grid-template-columns: 6.4rem 1fr;
    gap: 8px;
    padding: 5px 0;
    color: var(--gris-texte);
    line-height: 1.4;
}
.facts strong {
    color: var(--bleu-fisoi);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
}
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.formation-card .btn { width: fit-content; }

/* ============== PAGE BANNER ============== */

.page-banner {
    background: linear-gradient(135deg, var(--bleu-fisoi), var(--bleu-fonce));
    color: #fff;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; }
.breadcrumb { margin-top: 10px; font-size: .9rem; opacity: .85; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #ffb3b6; }

.content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.content-main h2 { margin: 28px 0 12px; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin: 22px 0 10px; color: var(--rouge-fisoi); }
.content-main ul, .content-main ol { margin: 10px 0 18px 22px; }
.content-main li { margin-bottom: 6px; color: var(--gris-texte); }

.sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--ombre);
    position: sticky;
    top: 96px;
}
.sidebar h3 {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rouge-fisoi);
}
.sidebar ul { list-style: none; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--gris-moyen); }
.sidebar li:last-child { border-bottom: none; }

.callout {
    background: #fff;
    border-left: 4px solid var(--rouge-fisoi);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--ombre);
    margin: 20px 0;
}

/* ============== PATHS / PARTNERS / DOCS ============== */

.path-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.path-tabs button {
    flex: 1;
    border: 1px solid var(--gris-moyen);
    background: #fff;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--bleu-fisoi);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--motion), color var(--motion), border-color var(--motion), transform 0.2s var(--ease-out);
}
.path-tabs button:hover { border-color: var(--bleu-fisoi); }
.path-tabs button.is-active {
    background: var(--bleu-fisoi);
    color: #fff;
    border-color: var(--bleu-fisoi);
}
.path-panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--ombre);
    border: 1px solid rgba(27, 58, 107, .06);
}
.path-panel ol { margin-left: 0; list-style: none; counter-reset: step; }
.path-panel li {
    margin-bottom: 12px;
    color: var(--gris-texte);
    padding-left: 44px;
    position: relative;
    counter-increment: step;
}
.path-panel li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ivoire);
    color: var(--rouge-fisoi);
    font-family: var(--font-titre);
    font-weight: 800;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.partner-chip {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--ombre);
    font-weight: 700;
    color: var(--bleu-fisoi);
    font-family: var(--font-titre);
    font-size: 1.05rem;
    letter-spacing: .02em;
    transition: transform var(--motion), box-shadow var(--motion);
}
.partner-chip:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }

.sector-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 36px;
}
.sector-tags li {
    background: var(--ivoire);
    border: 1px solid var(--gris-moyen);
    color: var(--bleu-fisoi);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: .9rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.doc-card {
    background: #fff;
    border: 1px solid var(--gris-moyen);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion);
}
.doc-card:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); color: inherit; border-color: rgba(27, 58, 107, .2); }
.doc-card-icon {
    width: 44px;
    height: 44px;
    background: var(--bleu-fisoi);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .72rem;
    flex-shrink: 0;
}
.doc-card-info strong { display: block; color: var(--bleu-fisoi); }
.doc-card-info span { font-size: .82rem; color: var(--gris-texte); }
.docs-heading {
    margin: 8px 0 16px;
    font-size: 1.2rem;
}

.engagements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    list-style: none;
}
.engagement {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--ombre);
    border: 1px solid rgba(27, 58, 107, .06);
    transition: transform var(--motion), box-shadow var(--motion);
}
.engagement:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.engagement p { margin-bottom: 0; }
.engagement h3 { margin: 8px 0 10px; font-size: 1.15rem; }
.engagement .num {
    font-family: var(--font-titre);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    color: var(--rouge-fisoi);
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.cta-band {
    background: linear-gradient(135deg, var(--rouge-fisoi), var(--rouge-fonce));
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.95); max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn-primary {
    background: #fff;
    color: var(--rouge-fisoi);
    border-color: #fff;
}
.cta-band .btn-primary:hover {
    background: var(--bleu-fisoi);
    color: #fff;
    border-color: var(--bleu-fisoi);
}

/* ============== CONTACT ============== */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
}
.contact-info-card {
    background: var(--bleu-fisoi);
    color: #fff;
    padding: 36px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.contact-info-card::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: rgba(214, 36, 44, .28);
    pointer-events: none;
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h2 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,.85); }
.contact-info-card ul { list-style: none; margin-top: 18px; }
.contact-info-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.contact-info-card strong {
    display: block;
    color: #ffb3b6;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.contact-info-card a { color: #fff; }

.form-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--bleu-fisoi);
    margin-bottom: 6px;
    font-size: .9rem;
}
.form-group .req { color: var(--rouge-fisoi); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gris-moyen);
    border-radius: 10px;
    font-family: var(--font-texte);
    font-size: .95rem;
    background: var(--ivoire);
    transition: border-color var(--motion), box-shadow var(--motion);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bleu-fisoi);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 58, 107, .12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-check {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .9rem;
    color: var(--gris-texte);
}
/* Champ leurre anti-spam : sorti de l'écran plutôt que display:none,
   que certains robots savent détecter et ignorer. */
.form-leurre {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--bleu-fisoi);
    background: var(--gris-clair);
    font-size: .92rem;
    line-height: 1.5;
}
.form-status.is-ok {
    border-left-color: #1E7A46;
    background: #EAF6EF;
    color: #145C34;
}
.form-status.is-error {
    border-left-color: var(--rouge-fisoi);
    background: #FCEDED;
    color: var(--rouge-fonce);
}

.badges-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.badge-quality {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--bleu-fisoi);
    font-weight: 700;
    color: var(--bleu-fisoi);
    font-size: .78rem;
    text-transform: uppercase;
}
.badge-quality .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--rouge-fisoi);
}
.badge-on-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35);
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre);
    height: 380px;
}

/* ============== FOOTER ============== */

.footer {
    background: var(--bleu-fonce);
    color: rgba(255,255,255,.78);
    padding: 56px 0 22px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer h4 {
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-size: 1rem;
}
.footer ul { list-style: none; }
.footer li { padding: 4px 0; font-size: .9rem; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #ffb3b6; }
.footer-logo {
    font-family: var(--font-titre);
    font-size: 1.7rem;
    color: #fff;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .84rem;
}

/* ============== LOOK + MOTION ============== */

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

.stats-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 18px 20px;
    box-shadow: var(--ombre);
    border: 1px solid rgba(27, 58, 107, .06);
    text-align: center;
    transition: transform var(--motion), box-shadow var(--motion);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.stat-label {
    font-family: var(--font-titre);
    font-size: 0.95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rouge-fisoi);
    margin-bottom: 8px;
    font-weight: 700;
}
.stat-value {
    font-family: var(--font-titre);
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    color: var(--bleu-fisoi);
    margin-bottom: 6px;
}
.stat-meta {
    font-size: 0.85rem;
    color: var(--gris-texte);
    margin-bottom: 8px;
}
.stat-rate {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bleu-fisoi);
    margin-bottom: 0;
}

@keyframes hero-mesh {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-3%, 4%) scale(1.08); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-right {
    from { opacity: 0; transform: translateX(36px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-copy > * {
    animation: fade-up 0.55s var(--ease-out) both;
}
.hero-copy > :nth-child(1) { animation-delay: 0s; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
.trust-card { animation: fade-in-right 0.57s var(--ease-out) .18s both; }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

.page-banner {
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -60px;
    top: -80px;
    border-radius: 50%;
    background: rgba(214, 36, 44, .22);
    animation: hero-mesh 14s var(--ease-out) infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before,
    .page-banner::after,
    .hero-copy > *,
    .trust-card { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:active, .filter-bar button:active { transform: none; }
    .cat-card:hover .cat-card-media img,
    .formation-card:hover .formation-card-media img { transform: none; }
}

/* ============== RESPONSIVE ============== */

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86vw, 360px);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 22px 24px;
        box-shadow: -12px 0 30px rgba(0,0,0,.12);
        transition: right .3s ease;
        z-index: 999;
    }
    .nav-main.open { right: 0; }
    .nav-main ul { flex-direction: column; }
    .nav-main a { border-radius: 10px; }
    .hero-grid,
    .cat-grid,
    .content-wrap,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    section { padding: 56px 0; }
    .hero { padding: 48px 0 64px; }
    .topbar { display: none; }
}
