:root {
    --ink: #1c1d1f;
    --muted: #5d616b;
    --accent: #DD4404;
    --accent-2: #135b7a;
    --surface: #ffffff;
    --surface-2: #f6f1ea;
    --line: #e0d8cf;
    --shadow: 0 20px 45px rgba(27, 33, 45, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    color: var(--ink);
    background: #f1f3f2;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(20px, 5vw, 70px);
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(33, 40, 58, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: padding 0.25s ease, box-shadow 0.25s ease;
}

main,
.site-footer {
    max-width: 1800px;
    margin: 0 auto;
    padding-top: 32px; 
}

.hero-page {
    padding-top: 0;
}

.title-hero {
    position: relative;
    min-height: 240px;
    background: var(--hero-image) center / cover no-repeat;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    margin-top: 0;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 0 H100 V75 C85 82 70 100 50 100 C30 100 15 85 0 70 Z' fill='white'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 0 H100 V75 C85 82 70 100 50 100 C30 100 15 85 0 70 Z' fill='white'/></svg>");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.title-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
    border-radius: 0;
}

.title-hero-content {
    position: relative;
    z-index: 1;
    padding: 20px 7px 80px;
    text-align: center;
}

.title-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.financement-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 32px clamp(7px, 5vw, 70px) 40px;
    font-size: 18pt;
    line-height: 1.7;
}

.solutions {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 70px) 40px;
    display: grid;
    gap: 24px;
}

.solution {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding: 36px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(20, 28, 45, 0.12);
    align-items: center;
    margin-bottom: 40pt ;
}

.solution--odd {
    background: #004CBF;
    color: #fff;
}

.solution--odd a {
    color: #fff;
    text-decoration: underline;
    margin-bottom: 12pt;
}

.solution a {
    text-decoration: underline;
}

.solution-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    max-height: 450px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 12pt;
}

.solution-body h2 {
    margin: 0 0 24px;
    font-size: 1.8rem;
    text-align: center;
}

.solution-body h2 span {
    display: inline-block;
    padding: 30pt 24pt;
    border-radius: 14px;
    background: #004CBF;
    color: #fff;
    width: 100%;
}

.solution--odd .solution-body h2 span {
    background: #fff;
    color: #004CBF;
}

.solution-body p {
    margin: 0 0 12px;
    font-size: 16pt;
    line-height: 1.6;
}

.solution-body a {
    display: inline-block;
}

.solution:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.solution:nth-child(even) .solution-media {
    order: 2;
}

.solution-body {
    align-self: center;
    justify-self: start;
    width: 100%;
    text-align: left;
}

.solution:nth-child(even) .solution-body {
    justify-self: end;
    text-align: left;
}

.solution:nth-child(even) .solution-body p,
.solution:nth-child(even) .solution-body a {
    text-align: left;
}

@media (max-width: 980px) {
    .solution,
    .solution:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .solution:nth-child(even) .solution-media {
        order: 0;
    }
}

.title-page main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.title-page .title-hero {
    margin-top: -1px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Bricolage Grotesque", sans-serif;
}

.logo-mark {
    width: auto;
    height: 110px;
    display: block;
    transition: height 0.25s ease;
}

.logo-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    transition: font-size 0.25s ease;
}

.logo-sub {
    margin: 2px 0 0;
    font-size: 1.56rem;
    color: var(--muted);
    transition: font-size 0.25s ease, opacity 0.25s ease;
}

.site-header.is-compact {
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-header.is-compact .logo-mark {
    height: 46px;
}

.site-header.is-compact .logo-title {
    font-size: 0.95rem;
}

.site-header.is-compact .logo-sub {
    font-size: 0.7rem;
    opacity: 0.85;
}

.main-nav {
    display: flex;
    gap: 18px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 0.92rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.menu-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 0;
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--ink);
}

.nav-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    padding: 2px 0;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.nav-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-user-menu .nav-user {
    cursor: pointer;
}

.nav-user-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(33, 40, 58, 0.12);
    padding: 10px;
    display: none;
    min-width: 180px;
    z-index: 20;
}

.nav-user-popup.is-open {
    display: grid;
    gap: 8px;
}

.nav-user-popup .nav-auth {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
}

.nav-user-popup .nav-auth:hover {
    background: rgba(0, 76, 191, 0.08);
}

.nav-user-popup button[data-action] {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    box-shadow: none;
}

.nav-user-popup button[data-action]:hover {
    background: rgba(0, 76, 191, 0.08);
    box-shadow: none;
}

.nav-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-icon--login {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 17l5-5-5-5'/><path d='M15 12H3'/><path d='M21 12a9 9 0 1 0-9 9'/></svg>");
}

.nav-icon--logout {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 7l5 5-5 5'/><path d='M19 12H7'/><path d='M3 12a9 9 0 1 0 9-9'/></svg>");
}

.nav-icon--messages {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>");
}

.nav-icon--users {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3'/><path d='M4 20c0-4 4-6 8-6s8 2 8 6'/></svg>");
}

.nav-icon--seo {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>");
}

.nav-icon--guide {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>");
}

.nav-icon--formations {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>");
}

.cta {
    font-family: "Bricolage Grotesque", sans-serif;
    background: var(--accent-2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(19, 91, 122, 0.25);
}

main {
    padding: 36px;
    display: grid;
    gap: 34px;
    flex: 1;
}

.hero {
    display: grid;
    gap: 20px;
}

.eyebrow {
    font-family: "Bricolage Grotesque", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent-2);
}

.breadcrumb {
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 28px;
}

.hero-main {
    background: #004CBF;
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
    animation: fadeUp 0.7s ease both;
}

.hero-main h1 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.6;
}

.meta-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.meta-chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Bricolage Grotesque", sans-serif;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    font-family: "Bricolage Grotesque", sans-serif;
    border-radius: 999px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
}

.quick-links a {
    padding-bottom: 2px;
    border-bottom: 1px dashed transparent;
}

.quick-links a:hover {
    border-bottom-color: var(--accent);
}

.hero-card {
    background: #111d2a;
    color: #fff;
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 120px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.1s;
    overflow: hidden;
}

.hero-card--image {
    background: var(--hero-card-bg) center / cover no-repeat;
}

.card-title {
    font-family: "Bricolage Grotesque", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.session {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(17, 29, 42, 0.6);
    backdrop-filter: blur(6px);
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
}

.no-sessions {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(17, 29, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.session-grid .session {
    border-right: none;
    padding-right: 14px;
}

.session-date {
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.session-city,
.session-places {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    justify-content: center;
    border-radius: 14px;
    padding: 10px 16px;
    background: rgba(17, 29, 42, 0.55);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.modalites-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.modalites-evaluation-grid .detail-card {
    height: 100%;
}

.details-left {
    display: grid;
    gap: 24px;
}

.detail-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 25px rgba(31, 40, 58, 0.08);
}

.detail-card h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    margin-top: 0;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-title .icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-target {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD4404' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='2'/></svg>");
}

.icon-list {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004CBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' y1='6' x2='20' y2='6'/><line x1='4' y1='12' x2='20' y2='12'/><line x1='4' y1='18' x2='20' y2='18'/></svg>");
}

.icon-users {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='8' r='3'/><path d='M3 20c0-3 3-5 6-5'/><path d='M15 15c3 0 6 2 6 5'/></svg>");
}

.icon-check {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD4404' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 13 9 17 19 7'/></svg>");
}

.icon-tag {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004CBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12l9 9 9-9-9-9H3v9z'/><circle cx='7.5' cy='7.5' r='1.5'/></svg>");
}

.icon-monitor {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='12' rx='2'/><line x1='8' y1='21' x2='16' y2='21'/><line x1='12' y1='17' x2='12' y2='21'/></svg>");
}

.icon-phone {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD4404' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='2' width='10' height='20' rx='2'/><circle cx='12' cy='18' r='1'/></svg>");
}

.icon-stars {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004CBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l1.8 4.6L18 9l-4.2 1.4L12 15l-1.8-4.6L6 9l4.2-1.4L12 3z'/><path d='M19 3l0.7 1.8L21 5l-1.3 0.4L19 7l-0.7-1.6L17 5l1.3-0.2L19 3z'/></svg>");
}

.icon-accessibility {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='14' cy='4' r='2'/><path d='M7 8h7l3 6h-4l-2 4'/><circle cx='8' cy='19' r='3'/><path d='M8 16v-5'/></svg>");
}

.icon-clock {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD4404' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>");
}

.detail-card ul {
    padding-left: 18px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.agenda {
    display: grid;
    gap: 16px;
}

.detail-card.programme {
    overflow: auto;
}

.agenda-item {
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-2);
}

.agenda-item h3 {
    margin-top: 0;
    font-family: "Bricolage Grotesque", sans-serif;
}

.agenda-item .module-subtitle {
    margin: 16px 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.agenda-item ul {
    margin: 8px 0;
    padding-left: 24px;
}

.agenda-item ul li {
    margin: 6px 0;
    color: var(--muted);
    line-height: 1.6;
}

.agenda-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--line);
}

.info-card h3 {
    margin-top: 0;
    font-family: "Bricolage Grotesque", sans-serif;
}

.info-value {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.referent-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.long-description-section {
    margin-bottom: 40px;
}

.long-description-content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--line);
}

.section-title {
    margin: 0 0 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    font-family: "Bricolage Grotesque", sans-serif;
}

.description-text {
    line-height: 1.8;
    color: var(--ink);
    font-size: 1.05rem;
}

.validity-info {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.obtaining-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.eval-section {
    margin-bottom: 20px;
}

.eval-section:last-child {
    margin-bottom: 0;
}

.eval-section h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-2);
}

.financement-section,
.inscription-section {
    margin-bottom: 40px;
}

.financement-card,
.inscription-card {
    background: #fafbfc;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px;
}

.financement-card h2,
.inscription-card h2 {
    margin: 0 0 20px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
}

.financement-content,
.inscription-content {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Thèmes sobres pour les blocs - sans dégradés */
.theme-pedagogique {
    background: #fafbfc;
    border-left: 3px solid #0284c7;
}

.theme-public {
    background: #fafbfc;
    border-left: 3px solid #6b7280;
}

.theme-competences {
    background: #fafbfc;
    border-left: 3px solid #8b5cf6;
}

.theme-certification {
    background: #fafbfc;
    border-left: 3px solid #10b981;
}

.theme-modalites {
    background: #fafbfc;
    border-left: 3px solid #6b7280;
}

.theme-evaluation {
    background: #fafbfc;
    border-left: 3px solid #f59e0b;
}

.theme-tarif {
    border-left: 3px solid var(--accent);
}

.theme-contact {
    border-left: 3px solid var(--accent-2);
}

.theme-accessibilite {
    border-left: 3px solid #6b7280;
}

.theme-inscription {
    background: #fafbfc;
    border-left: 3px solid var(--accent);
}

/* Sous-sections dans les blocs */
.modality-section,
.eval-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.modality-section:not(:last-child),
.eval-section:not(:last-child) {
    border-bottom: 1px dashed var(--line);
}

.modality-section h4,
.eval-section h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.certification-name {
    font-size: 1.2rem;
    color: #10b981;
    margin-bottom: 12px;
}

.obtaining-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.obtaining-info h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.financement-mini {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.financement-mini h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.financement-mini p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.skills-section {
    margin-bottom: 40px;
}

.skills-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skills-list li {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.skills-list li::before {
    content: "✓";
    display: inline-block;
    margin-right: 8px;
    color: #8b5cf6;
    font-weight: 700;
}

.cta-banner {
    background: linear-gradient(120deg, #f0c9b8, #f7e6c9);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-banner h2 {
    margin: 0 0 6px;
    font-family: "Bricolage Grotesque", sans-serif;
}

.site-footer {
    display: grid;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.site-footer > * {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-block {
    text-align: center;
}

.footer-block h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-block p {
    margin: 0 0 6px;
    line-height: 1.6;
}

.footer-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-icon--place {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD4404' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s6-5.3 6-10a6 6 0 1 0-12 0c0 4.7 6 10 6 10z'/><circle cx='12' cy='11' r='2.5'/></svg>");
}

.footer-icon--hours {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}

.footer-icon--contact {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004CBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v2a2 2 0 0 1-2.2 2A19 19 0 0 1 3 5.2 2 2 0 0 1 5 3h2a2 2 0 0 1 2 1.7c.1.9.3 1.8.6 2.7a2 2 0 0 1-.5 2.1L8 10a16 16 0 0 0 6 6l.5-1.1a2 2 0 0 1 2.1-.5c.9.3 1.8.5 2.7.6A2 2 0 0 1 22 16.9z'/></svg>");
}

.footer-partners {
    border-top: 1px solid var(--line);
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
}

.footer-partners h3 {
    margin: 0 0 24px;
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 600;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partner-logo {
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-note {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.footer-legal {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.formations-list {
    max-width: 1800px;
    margin: 0 auto;
    padding: 32px clamp(20px, 5vw, 70px) 40px;
}

.formations-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.formations-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.formations-filter label {
    font-weight: 600;
    color: var(--ink);
    margin-right: -8px;
}

.formations-filter select,
.formations-filter input[type="text"] {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.formations-filter select {
    min-width: 180px;
}

.formations-filter input[type="text"] {
    min-width: 250px;
    flex: 1;
}

.formations-filter input[type="text"]::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.formations-filter select:focus,
.formations-filter input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(0, 76, 191, 0.1);
}

.formations-filter button[type="submit"] {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.formations-filter button[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.formations-filter button[type="submit"]:active {
    transform: translateY(0);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.formation-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 30px rgba(20, 28, 45, 0.12);
    border: 1px solid rgba(0, 76, 191, 0.15);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(221, 68, 4, 0.2);
}

.formation-card-link {
    display: grid;
    color: inherit;
}

.formation-image {
    height: 180px;
    background: linear-gradient(140deg, rgba(0, 76, 191, 0.2), rgba(221, 68, 4, 0.2));
    background-size: cover;
    background-position: center;
}

.formation-body {
    padding: 18px 20px 22px;
    display: grid;
    gap: 10px;
}

.formation-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.formation-status {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(221, 68, 4, 0.15);
    color: #DD4404;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.formation-body h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink);
}

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

.formation-category {
    align-self: start;
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #DD4404;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.formation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: #004CBF;
    font-size: 0.9rem;
}

.formation-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.formation-format {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    main {
        padding: 12px 7px;
    }

    .site-header {
        flex-wrap: wrap;
        border-radius: 0;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-card {
        position: static;
    }

    .meta-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-grid,
    .modalites-evaluation-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-rows: auto;
    }

    .detail-card.programme {
        height: auto;
        overflow: visible;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        gap: 18px;
    }

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

    .partners-logos {
        gap: 32px;
    }

    .partner-logo img {
        max-width: 140px;
        max-height: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .formations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .formations-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .formations-list {
        padding: 12px 7px 40px;
    }

    .site-footer > * {
        padding: 0 7px;
    }
}

@media (max-width: 720px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
        background: #fff;
        padding: 0 clamp(20px, 5vw, 70px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 30px rgba(33, 40, 58, 0.12);
        z-index: 15;
    }

    .site-header.is-menu-open .main-nav,
    .main-nav.is-open {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
        padding: 12px clamp(20px, 5vw, 70px);
    }
}
@media (max-width: 600px) {
    .site-header {
        padding: 16px;
    }

    .main-nav {
        display: flex;
    }

    .hero-main {
        padding: 22px;
    }

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 30, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
    padding: 24px;
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #fff;
    border-radius: 18px;
    width: min(720px, 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: #004CBF;
    color: #fff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d7dbe6;
    font-size: 16px;
    font-family: inherit;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
    flex-wrap: wrap;
}

.form-message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.form-error {
    background: #ffe6e6;
    color: #8a1c1c;
}

.form-success {
    background: #e4f7e9;
    color: #1f6b3a;
}

@media (max-width: 640px) {
    .modal {
        border-radius: 14px;
    }

    .modal-header,
    .modal-body {
        padding: 18px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }
}

/* Hero Page - Page d'accueil */
.hero-page {
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
    max-width: none;
}

.hero-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    max-width: none;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 76, 191, 0.75) 0%, rgba(221, 68, 4, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    line-height: 1.6;
    margin: 0 0 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: left;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn--primary {
    background: var(--accent);
    color: white;
}

.hero-btn--primary:hover {
    background: #b83803;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(221, 68, 4, 0.4);
}

.hero-btn--secondary {
    background: white;
    color: var(--accent-2);
    border: 2px solid white;
}

.hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-container {
        height: calc(100vh - 70px);
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Section Introduction */
.intro-section {
    padding: 80px clamp(20px, 5vw, 70px);
    background: #ffffff;
    margin-top: 0;
}

.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.intro-left {
    position: sticky;
    top: 100px;
}

.intro-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}

.intro-highlight {
    color: var(--accent);
}

.intro-highlight--underline {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q50,2 100,3 T200,4' stroke='%23DD4404' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M2,11 Q52,3 102,4 T202,5' stroke='%23DD4404' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-size: auto 12px;
    padding-bottom: 3px;
}

.intro-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro-text {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.8;
    color: var(--ink);
    margin: 0;
}

.intro-text--emphasis {
    font-size: clamp(1.05rem, 1.9vw, 1.2rem);
}

@media (max-width: 980px) {
    .intro-section {
        padding: 60px 7px;
    }
    
    .intro-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .intro-left {
        position: static;
    }
    
    .intro-title {
        margin-bottom: 0;
    }
}

/* Section Catégories */
.categories-section {
    padding: 80px clamp(20px, 5vw, 70px);
    background: var(--surface-2);
}

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

.categories-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: var(--ink);
}

.categories-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.125rem;
    margin: 0 0 3rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(221, 68, 4, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--ink);
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--accent);
}

.category-count {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
}

.category-arrow {
    margin-top: auto;
    color: var(--accent-2);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .categories-section {
        padding: 60px 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Section Qualiopi */
.qualiopi-section {
    padding: 80px clamp(20px, 5vw, 70px);
    background: #ffffff;
}

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

.qualiopi-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--line);
}

.qualiopi-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qualiopi-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.qualiopi-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qualiopi-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.qualiopi-description {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

.qualiopi-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: 0.5rem;
}

.qualiopi-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

@media (max-width: 968px) {
    .qualiopi-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .qualiopi-logo {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .qualiopi-text {
        text-align: center;
    }
    
    .qualiopi-link {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .qualiopi-section {
        padding: 60px 20px;
    }
}

/* Section Prochaines formations */
.upcoming-section {
    padding: 80px clamp(20px, 5vw, 70px);
    background: #ffffff;
}

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

.upcoming-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: var(--ink);
}

.upcoming-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.125rem;
    margin: 0 0 3rem 0;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.upcoming-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.upcoming-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.upcoming-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-muted);
}

.upcoming-content {
    padding: 1.75rem;
}

.upcoming-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.upcoming-date svg {
    flex-shrink: 0;
}

.upcoming-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.upcoming-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.upcoming-card-title a:hover {
    color: var(--accent);
}

.upcoming-description {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upcoming-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.upcoming-link:hover {
    gap: 0.75rem;
}

.upcoming-link svg {
    flex-shrink: 0;
}

.upcoming-cta {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .upcoming-section {
        padding: 60px 20px;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Section Pourquoi nous choisir */
.why-section {
    padding: 100px clamp(20px, 5vw, 70px);
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
    margin-top: 0;
}

.why-container {
    max-width: 1400px;
    margin: 0 auto;
}

.why-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 60px;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.why-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid var(--accent);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.why-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 16px;
}

.why-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
    line-height: 1.3;
}

.why-card-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

.why-note {
    background: var(--accent);
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    margin-top: 40px;
}

.why-note p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .why-section {
        padding: 60px 7px;
    }
    
    .why-title {
        margin-bottom: 40px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .why-card {
        padding: 30px 24px;
    }
    
    .why-note {
        padding: 20px 24px;
    }
}

/* Financement V2 - Nouvelle mise en page */
.financement-v2 {
    padding-top: 0;
}

.financement-v2 .title-hero {
    min-height: 500px;
}

.financement-v2 .title-hero-content {
    max-width: 900px;
}

.financement-v2 .hero-intro-text {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.7;
    margin-top: 24px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.financement-intro {
    padding: 60px clamp(20px, 5vw, 70px);
    background: linear-gradient(135deg, rgba(0, 76, 191, 0.03) 0%, rgba(221, 68, 4, 0.03) 100%);
    text-align: center;
}

.financement-intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.financement-intro-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--ink);
    margin: 0;
}

.financement-grid-section {
    padding: 80px clamp(20px, 5vw, 70px);
    max-width: 1400px;
    margin: 0 auto;
}

.financement-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin: 0 0 24px;
}

.financement-section-intro {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: var(--ink);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.financement-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.financement-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.financement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.financement-card--primary {
    grid-column: span 2;
    flex-direction: row;
}

.financement-card--wide {
    grid-column: span 2;
    flex-direction: row;
}

.financement-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.financement-card--primary .financement-card-image,
.financement-card--wide .financement-card-image {
    width: 45%;
    height: auto;
}

.financement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.financement-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.financement-card--primary .financement-card-content,
.financement-card--wide .financement-card-content {
    width: 55%;
    padding: 40px;
}

.financement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.financement-card-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 16px;
}

.financement-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 20px;
    flex: 1;
}

.financement-card-link {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    margin-top: auto;
}

.financement-card-link:hover {
    transform: translateX(4px);
}

.financement-cta {
    padding: 80px clamp(20px, 5vw, 70px);
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    text-align: center;
    color: white;
}

.financement-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.financement-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 20px;
}

.financement-cta p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.7;
    margin: 0 0 32px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 980px) {
    .financement-intro {
        padding: 40px 7px;
    }
    
    .financement-grid-section {
        padding: 60px 7px;
    }
    
    .financement-section-title {
        margin-bottom: 40px;
    }
    
    .financement-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .financement-card--primary,
    .financement-card--wide {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .financement-card--primary .financement-card-image,
    .financement-card--wide .financement-card-image {
        width: 100%;
        height: 220px;
    }
    
    .financement-card--primary .financement-card-content,
    .financement-card--wide .financement-card-content {
        width: 100%;
        padding: 28px;
    }
    
    .financement-card-content {
        padding: 24px;
    }
    
    .financement-cta {
        padding: 60px 7px;
    }
}

/* Qualiopi page styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(221, 68, 4, 0.2);
}

.btn--primary:hover {
    background: #c23903;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 68, 4, 0.3);
}

.qualiopi-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.qualiopi-info h2,
.qualiopi-info h3 {
    color: var(--accent-2);
}

.qualiopi-info h2 {
    font-size: 1.8rem;
    margin: 0 0 16px;
}

.qualiopi-info h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
}

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.criteria-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.criteria-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.certificate-viewer {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.certificate-viewer h2 {
    margin: 0 0 24px;
    color: var(--accent-2);
    font-size: 1.8rem;
}

.pdf-container {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}

.pdf-download {
    text-align: center;
    padding: 20px;
    margin: 0;
}

.certificate-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--muted);
    text-align: center;
}

.certificate-placeholder svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.certificate-placeholder .text-muted {
    font-size: 0.9rem;
    margin-top: 8px;
}

.certificate-placeholder code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

@media (min-width: 980px) {
    .qualiopi-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Calendrier page styles */
.calendar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--muted);
}

.calendar-empty svg {
    opacity: 0.3;
    margin-bottom: 24px;
}

.calendar-empty h2 {
    color: var(--ink);
    margin: 0 0 12px;
}

.calendar-empty p {
    max-width: 500px;
    line-height: 1.6;
}

.calendar-month {
    margin-bottom: 60px;
}

.calendar-month-title {
    font-size: 2rem;
    color: var(--accent-2);
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid #DD4404;
}

.calendar-sessions {
    display: grid;
    gap: 24px;
}

.calendar-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.calendar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(27, 33, 45, 0.16);
}

.calendar-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--accent-2);
    color: white;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 80px;
}

.calendar-day {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-month-short {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.calendar-card-content {
    flex: 1;
}

.calendar-card-title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.calendar-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.calendar-card-title a:hover {
    color: var(--accent);
}

.calendar-card-description {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.calendar-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.calendar-meta-item svg {
    flex-shrink: 0;
}

.calendar-card-action {
    flex-shrink: 0;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: var(--accent-2);
    transform: scale(1.05);
}

/* Méthodes pédagogiques */
.pedagogical-methods-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    margin-bottom: 30px;
}

.pedagogical-methods-section .section-subtitle {
    margin: 0 0 32px;
    font-size: 1.05rem;
    color: var(--muted);
    text-align: center;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.method-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 33, 45, 0.08);
    border-color: var(--accent);
}

.method-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.method-icon svg {
    width: 100%;
    height: 100%;
}

.method-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
}

.method-subtitle {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--accent-2);
    text-align: center;
    font-style: italic;
    min-height: 20px;
}

.method-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    text-align: left;
}

@media (max-width: 768px) {
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .pedagogical-methods-section {
        padding: 32px 20px;
    }
}

@media (max-width: 980px) {
    .calendar-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .calendar-card-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 12px;
    }
    
    .calendar-day {
        font-size: 1.8rem;
    }
    
    .calendar-month-short {
        margin-top: 0;
        margin-left: 8px;
    }
    
    .calendar-card-action {
        width: 100%;
    }
    
    .calendar-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour pages publiques - Alternance et autres */
.site-main {
    background: #fff;
    min-height: calc(100vh - 300px);
}

.section {
    padding: 60px 20px;
}

.section--highlight {
    background: linear-gradient(135deg, #f6f1ea 0%, #ffffff 100%);
    padding: 80px 20px 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container--narrow {
    max-width: 900px;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink);
}

.section-intro p {
    margin: 0 0 1rem;
}

.section-intro strong {
    color: var(--accent-2);
    font-weight: 600;
}

.text-muted {
    color: var(--muted);
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.external-link {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

.external-link:hover {
    color: var(--accent);
}

.alternance-content {
    padding: 20px 0;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-2);
    margin: 0 0 1.5rem;
}

.content-block h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1rem;
}

.content-block p {
    line-height: 1.8;
    color: var(--ink);
    margin: 0 0 1rem;
}

.info-box {
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.info-box--blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-left: 4px solid #0284c7;
}

.info-box--green {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-left: 4px solid #10b981;
}

.info-box--outline {
    background: #fff;
    border: 2px solid var(--line);
}

.info-box h3 {
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-2);
}

.info-box ul {
    margin: 0;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.conclusion-box {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.conclusion-box p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 15px;
    }
    
    .section--highlight {
        padding: 60px 15px 40px;
    }
    
    .content-block h2 {
        font-size: 1.6rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .conclusion-box {
        padding: 1.5rem;
    }
    
    .conclusion-box p {
        font-size: 1.05rem;
    }
}
