:root {
    --ink: #1d2b36;
    --muted: #5b6b78;
    --blue: #2d4f6c;
    --blue-dark: #233c44;
    --blue-light: #3a6b8a;
    --accent: #7ebec5;
    --accent-2: #2ea3f2;
    --bg: #f4f7f9;
    --bg-alt: #e9f0f4;
    --card: #ffffff;
    --border: #dbe4ea;
    --radius: 14px;
    --shadow-sm: 0 4px 14px rgba(16, 42, 67, .06);
    --shadow: 0 10px 30px rgba(16, 42, 67, .09);
    --shadow-lg: 0 20px 50px rgba(16, 42, 67, .16);
    --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
    --font-head: "Alef", "Open Sans", "Segoe UI", Arial, sans-serif;
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #1c6fa8;
    text-underline-offset: 3px;
}

a:hover {
    color: #14567f;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--blue);
    margin: 0 0 .6em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.01em;
}

h2 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(var(--container), 100% - 2.5rem);
    margin-inline: auto;
}

.narrow {
    max-width: 760px;
}

.center {
    text-align: center;
}

.center-actions {
    justify-content: center;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--blue);
    padding: .75rem 1rem;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 70%, var(--blue-light) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .14);
}

.site-header .container {
    width: min(1400px, 100% - 2rem);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: .02em;
}

.brand-text small {
    font-size: .7rem;
    opacity: .82;
    max-width: 300px;
}

.main-nav {
    margin-left: auto;
}

.main-nav>ul {
    display: flex;
    align-items: center;
    gap: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: .55rem .55rem;
    color: #eaf2f5;
    text-decoration: none;
    font-size: .84rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.nav-lock {
    border: 1px solid rgba(255, 255, 255, .3);
    margin-left: .3rem;
}

.has-children {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: .45rem;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 60;
}

.has-children:hover>.submenu,
.has-children:focus-within>.submenu,
.has-children.open>.submenu {
    display: block;
}

.submenu a {
    color: var(--ink);
    padding: .55rem .8rem;
    font-size: .88rem;
}

.submenu a:hover {
    background: var(--bg);
    color: var(--blue);
}

.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */
.messages {
    margin-top: 1rem;
}

.message {
    padding: .85rem 1rem;
    border-radius: 10px;
    margin-bottom: .5rem;
    font-size: .94rem;
}

.message-success {
    background: #e7f6ec;
    color: #126b3a;
    border: 1px solid #b7e4c7;
}

.message-error {
    background: #feeceb;
    color: #9b1c13;
    border: 1px solid #f5c2be;
}

.message-info {
    background: #e8f1f8;
    color: #1c4f73;
    border: 1px solid #c5dcec;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--blue-dark);
    background-image:
        linear-gradient(90deg, rgba(17, 33, 43, .90) 0%, rgba(17, 33, 43, .74) 55%, rgba(17, 33, 43, .48) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    padding: 5.5rem 0;
}

.hero::after {
    content: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 780px;
}

.hero h1 {
    color: #fff;
    font-family: "Roboto Slab", var(--font-head);
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: .25em;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #bfe3e8;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-text {
    max-width: 62ch;
    color: #dbe9ee;
    font-size: 1.02rem;
}

.hero-text p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
}

.hero-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    padding: 2rem;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(4px);
}

.hero-mark span {
    font-family: var(--font-head);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.hero-mark small {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .7rem;
    color: #cfe6ea;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .72rem 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-2);
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 163, 242, .28);
}

.btn-primary:hover {
    background: #1c8cd8;
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: #b9cbd6;
}

.btn-outline:hover {
    background: #fff;
    border-color: var(--accent-2);
    color: var(--blue);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: .95rem 1.3rem;
    font-size: 1rem;
}

.btn-small {
    padding: .5rem .8rem;
    font-size: .82rem;
}

/* --------------------------------------------------------------------------
   Sections and cards
   -------------------------------------------------------------------------- */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin-bottom: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 700;
    color: #1f7fb8;
    margin: 0 0 .5rem;
}

.eyebrow-light {
    color: #9fd8df;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 70ch;
}

.meta {
    font-size: .84rem;
    color: var(--muted);
    margin: 0 0 .5rem;
}

.small {
    font-size: .8rem;
    color: var(--muted);
}

.notice {
    background: #fff;
    border: 1px dashed #c9d6de;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    color: var(--muted);
}

.section-link {
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 1.25rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid rgba(45, 79, 108, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.card-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    font-family: var(--font-head);
    font-size: 4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.4rem;
    flex: 1;
}

.card-body h3 {
    margin: 0;
}

.card-body p {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

.card-link {
    margin-top: auto;
    padding-top: .6rem;
    color: #1f7fb8;
    font-weight: 700;
    font-size: .88rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* --------------------------------------------------------------------------
   Lesson cards
   -------------------------------------------------------------------------- */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.lesson-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}

.lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.lesson-card-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}

.lesson-number {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--blue);
    background: var(--bg-alt);
    border-radius: 8px;
    padding: .15rem .5rem;
    font-size: .85rem;
}

.lesson-card h3 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.lesson-card h3 a {
    color: var(--blue);
    text-decoration: none;
}

.lesson-card h3 a:hover {
    text-decoration: underline;
}

.lesson-summary {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 .6rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.badge-video {
    background: #e8f1f8;
    color: #1c4f73;
}

.badge-lock {
    background: #fff3d6;
    color: #8a5a00;
}

/* --------------------------------------------------------------------------
   Page headers, breadcrumb, layout
   -------------------------------------------------------------------------- */
.page-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 2.5rem;
}

.page-header-series {
    background: linear-gradient(180deg, #fff 0%, #f1f7fa 100%);
}

.page-header h1 {
    margin-bottom: .35em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    padding: 3rem 0 4rem;
}

.page-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: start;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h2 {
    font-size: 1.05rem;
    margin: 0 0 .75rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-bottom: .9rem;
}

.resource-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.resource-item:hover {
    border-color: var(--accent-2);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.resource-item img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #fff;
}

.resource-item span {
    font-size: .68rem;
    line-height: 1.2;
    text-align: center;
    color: var(--muted);
}

.sidebar-cta {
    background: linear-gradient(160deg, #fff, #eef5f8);
}

.sidebar-list {
    list-style: none;
    margin: 0 0 .75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.sidebar-list a {
    color: var(--ink);
    text-decoration: none;
    font-size: .9rem;
}

.sidebar-list a:hover {
    color: #1f7fb8;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */
.prose {
    font-size: 1.02rem;
    color: #2c3e4a;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.8em;
    margin-bottom: .5em;
}

.prose h2 {
    font-size: 1.55rem;
}

.prose h3 {
    font-size: 1.2rem;
}

.prose p {
    margin-bottom: 1em;
}

.prose ul,
.prose ol {
    margin: 0 0 1em;
    padding-left: 1.4rem;
}

.prose li {
    margin-bottom: .35em;
}

.prose img,
.prose video,
.prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: .92rem;
}

.prose th,
.prose td {
    border: 1px solid var(--border);
    padding: .55rem .65rem;
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--bg-alt);
}

.prose blockquote {
    margin: 1.2em 0;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    color: var(--muted);
    font-style: italic;
}

.series-intro {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Lesson page
   -------------------------------------------------------------------------- */
.lesson-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    padding: 2.5rem 0 4rem;
}

.lesson-main {
    min-width: 0;
}

.video-wrap {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: .9rem;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Masque le bouton de téléchargement natif (WebKit/anciens navigateurs). */
video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}


.video-download {
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.lesson-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Documents, callouts, donate, contact
   -------------------------------------------------------------------------- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.doc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.doc-card h2 {
    font-size: 1.15rem;
    margin: 0;
}

.doc-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.callout {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}

.callout h2 {
    font-size: 1.15rem;
    margin-top: 0;
}

.donate-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
    padding: 3rem 0;
}

.donate-card {
    align-self: start;
    background: linear-gradient(160deg, #fff, #eef5f8);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.donate-card h2 {
    margin-top: 0;
}

.contact-info {
    min-width: 0;
}

.contact-email {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    word-break: break-all;
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    align-self: start;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.1rem;
}

.form-row label {
    font-weight: 600;
    font-size: .9rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: .72rem .85rem;
    border: 1px solid #c9d6de;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, .16);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.has-error input,
.has-error textarea {
    border-color: #f04438;
}

.field-error {
    color: #b42318;
    font-size: .82rem;
    margin: 0;
}

.form-errors {
    background: #feeceb;
    color: #9b1c13;
    border: 1px solid #f5c2be;
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}

.form-required {
    margin: -.3rem 0 1rem;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */
.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    max-width: 640px;
}

.search-form input[type="search"] {
    flex: 1 1 260px;
}

.search-section {
    margin: 2.5rem 0;
}

.result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
}

.result-list a {
    font-weight: 700;
    text-decoration: none;
    color: var(--blue);
}

.result-list p {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Gate
   -------------------------------------------------------------------------- */
.gate-section {
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: linear-gradient(160deg, var(--bg-alt), #f9fbfc);
}

.gate-card {
    width: min(500px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.gate-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--blue);
    font-family: var(--font-head);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-card form {
    text-align: left;
    margin: 1.5rem 0;
}

.gate-card .btn {
    margin-top: .25rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    font-size: .9rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #1b2f38;
    color: #cfe0e6;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-col h2 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin: 0 0 .9rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-col a {
    color: #cfe0e6;
    text-decoration: none;
    font-size: .9rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-about p {
    font-size: .88rem;
    color: #9fb6c0;
    max-width: 38ch;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: .8rem;
}

.footer-brand img {
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
    font-size: .8rem;
}

.social-links a {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .25rem .65rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.25rem 0 2rem;
    font-size: .78rem;
    color: #9fb6c0;
}

.footer-bottom p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        cursor: pointer;
        border-radius: 8px;
    }

    .nav-toggle-label span {
        display: block;
        height: 2px;
        width: 24px;
        background: #fff;
        border-radius: 2px;
        transition: transform .2s, opacity .2s;
    }

    .nav-toggle {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: var(--blue-dark);
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: 0 18px 30px rgba(0, 0, 0, .2);
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }

    .nav-toggle:checked~.main-nav {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
    }

    .main-nav a {
        padding: .7rem .75rem;
        font-size: .95rem;
    }

    .nav-lock {
        margin-left: 0;
        text-align: center;
    }

    .submenu {
        position: static;
        display: block;
        background: rgba(255, 255, 255, .06);
        box-shadow: none;
        padding: .2rem 0 .4rem .9rem;
        min-width: 0;
        border-radius: 0;
    }

    .submenu a {
        color: #eaf2f5;
        font-size: .88rem;
    }

    .submenu a:hover {
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }
}

@media (max-width: 960px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-mark {
        display: none;
    }

    .page-layout,
    .lesson-layout,
    .donate-layout,
    .contact-layout,
    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        order: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 1.75rem);
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        padding: 3rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .card-grid,
    .lesson-grid,
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2.5rem 0;
    }

    .hero-actions .btn,
    .gate-card .btn {
        width: 100%;
    }

    .form-card,
    .gate-card {
        padding: 1.35rem;
    }

    .video-wrap {
        border-radius: 12px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
