:root {
    --estt-navy-dark: #122c52;
    --estt-navy: #1c4d8c;
    --estt-navy-hover: #143a6b;
    --estt-green: #1e7e34;
    --estt-green-hover: #17652a;
    --estt-bg: #eef2f6;
    --estt-text: #1f2933;
    --estt-muted: #5d6b7a;
    --estt-border: #dfe3e8;
}

* {
    box-sizing: border-box;
}

.info-bar {
    background: var(--estt-navy-dark);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.info-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--estt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
}

.topbar img {
    height: 90px;
    display: block;
}

.logo-centered {
    display: block;
    height: 90px;
    margin: 0 auto 1.25rem;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--estt-navy);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.topbar a svg {
    width: 19px;
    height: 19px;
}

.topbar a:hover {
    text-decoration: underline;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--estt-bg);
    color: var(--estt-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1 0 auto;
    padding: 2.5rem 1rem;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(18, 44, 82, 0.1);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/zellige.png') no-repeat center center;
    background-size: 520px;
    opacity: 0.35;
    pointer-events: none;
}

.container > * {
    position: relative;
}

.container.no-watermark::before {
    display: none;
}

.autosave-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: var(--estt-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.autosave-indicator::before {
    content: "✓";
    color: var(--estt-green);
    font-weight: 700;
}

.autosave-indicator.visible {
    opacity: 1;
}

.countdown-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fdecea;
    border-bottom: 1px solid #f5c2bd;
    padding: 0.7rem 1rem;
    color: #cc1f1a;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.countdown-banner.countdown-closed {
    color: var(--estt-muted);
    background: var(--estt-bg);
    border-color: var(--estt-border);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--estt-green);
    margin: 0 0 0.35rem;
}

.eyebrow-compact {
    font-size: 1rem;
    color: var(--estt-text);
}

.success-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 0 0 1rem;
}

.success-hero-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #e6f4ea;
    color: var(--estt-green);
}

header {
    margin-bottom: 1.5rem;
}

header h1 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--estt-navy-dark);
}

header p {
    color: var(--estt-muted);
}

fieldset {
    border: 1px solid var(--estt-border);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem 1.25rem;
}

legend {
    font-weight: 600;
    color: var(--estt-navy-dark);
    padding: 0 0.5rem;
}

.progress-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 0 0.25rem;
}

.progress-track {
    position: absolute;
    top: 1.1rem;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background: var(--estt-border);
    z-index: 0;
}

.progress-track-fill {
    height: 100%;
    width: 0;
    background: var(--estt-green);
    transition: width 0.25s ease;
}

.progress-step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: var(--estt-muted);
}

.progress-step:hover {
    background: none;
}

.progress-step .bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--estt-border);
    background: #fff;
    color: var(--estt-muted);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.progress-step .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 6.5rem;
}

.progress-step.active .bullet {
    border-color: var(--estt-green);
    color: var(--estt-green);
}

.progress-step.active .label {
    color: var(--estt-green);
}

.progress-step.done .bullet {
    border-color: var(--estt-green);
    background: var(--estt-green);
    color: #fff;
}

.progress-step.done .label {
    color: var(--estt-green);
}

.step {
    display: none;
    border: 1px solid var(--estt-navy);
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
}

.step.active {
    display: block;
}

.step-header {
    font-weight: 600;
    color: var(--estt-navy-dark);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--estt-border);
}

.step-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.step-header .step-error {
    color: #cc1f1a;
    font-weight: 500;
    font-size: 0.85rem;
}

.step-body {
    padding: 1.25rem;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.wizard-nav .spacer {
    flex: 1;
}

.nav-prev {
    background: none;
    border: none;
    padding: 0.5rem 0;
    color: var(--estt-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0;
}

.nav-prev:hover {
    color: var(--estt-green);
    background: none;
}

.nav-next {
    display: inline-block;
    background: var(--estt-green);
    color: #fff;
    border: none;
    padding: 0.7rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 0;
}

.nav-next:hover {
    background: var(--estt-green-hover);
}

.field {
    margin-bottom: 1rem;
}

.field-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: var(--estt-muted);
    font-size: 13px;
    margin-top: 0.3rem;
}

.field-hint::before {
    content: "ℹ️";
    flex-shrink: 0;
    line-height: 1.4;
}

.field-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 400;
    cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    font-family: inherit;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--estt-navy);
    box-shadow: 0 0 0 3px rgba(28, 77, 140, 0.15);
}

input[readonly] {
    background: var(--estt-bg);
    color: var(--estt-muted);
}

.richtext {
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    overflow: hidden;
}

.richtext:focus-within {
    border-color: var(--estt-navy);
    box-shadow: 0 0 0 3px rgba(28, 77, 140, 0.15);
}

.richtext.invalid {
    border-color: #cc1f1a;
}

.richtext-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    background: var(--estt-bg);
    border-top: 1px solid #cbd2d9;
}

.richtext-toolbar button {
    background: #fff;
    border: 1px solid var(--estt-border);
    border-radius: 4px;
    min-width: 32px;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    color: var(--estt-text);
    cursor: pointer;
}

.richtext-toolbar button:hover {
    background: var(--estt-bg);
    border-color: var(--estt-navy);
}

.richtext-editor {
    min-height: 140px;
    padding: 0.65rem 0.7rem;
    font-size: 1rem;
    line-height: 1.5;
}

.richtext-editor:focus {
    outline: none;
}

.richtext-editor ul {
    margin: 0.3rem 0;
    padding-left: 1.5rem;
}

.ar-field {
    position: relative;
}

.ar-keyboard {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--estt-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 44, 82, 0.18);
    padding: 0.6rem;
}

.ar-keyboard.open {
    display: block;
}

.ar-keyboard-row {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.ar-key {
    flex: 1;
    min-width: 1.8rem;
    background: var(--estt-bg);
    border: 1px solid var(--estt-border);
    border-radius: 4px;
    padding: 0.4rem 0;
    font-size: 1rem;
    cursor: pointer;
    color: var(--estt-text);
}

.ar-key:hover {
    background: #e2e8ef;
}

.ar-key-space {
    flex: 4;
}

.ar-key-action {
    flex: 2;
    font-size: 0.85rem;
    color: var(--estt-navy);
}

.error {
    display: block;
    color: #cc1f1a;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.upload-ok {
    display: block;
    color: var(--estt-green);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fdecea;
    color: #cc1f1a;
    border: 1px solid #f5c2c0;
}

.alert-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0 0;
}

.alert-icon svg {
    flex-shrink: 0;
}

.alert-warning {
    background: #fdf3d7;
    color: #8a6416;
    border: 1px solid #f0d989;
}

.alert-success {
    background: #e6f4ea;
    color: var(--estt-green);
    border: 1px solid #b7dfc1;
    text-align: center;
}

.alert-success p {
    color: var(--estt-text);
}

.alert-success strong {
    color: var(--estt-text);
}

.alert-plain {
    text-align: center;
}

.alert-plain h1 {
    color: var(--estt-green);
}

.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20vh;
}

.page-success-bg {
    background: linear-gradient(160deg, #dbe9fb, #eef2f6 55%);
}

.page-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.page-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--estt-navy);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto;
    color: var(--estt-navy);
}

.page-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--estt-navy-dark);
    margin: 0;
}

.page-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--estt-muted);
    margin-top: 0.35rem;
}

.page-year {
    color: var(--estt-navy);
    font-weight: 700;
}

.page-stack .container {
    max-width: none;
    margin: 0;
}

.container.watermark-small::before {
    background-size: 300px;
}

.container.watermark-large::before {
    background-size: 400px;
    background-position: center 120%;
}

.container.watermark-shifted::before {
    background-size: 420px;
    background-position: center 100px;
}

button,
.button {
    display: inline-block;
    background: var(--estt-green);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.5rem;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.info-cards .info-card {
    flex: 1 1 240px;
}

.info-cards .info-card-wide {
    flex: 2 1 0;
}

.info-cards .info-card-narrow {
    flex: 1 1 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #eaf3fc;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    text-align: left;
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--estt-navy);
}

.info-card p {
    margin: 0;
    line-height: 1.4;
}

.info-card-label {
    display: block;
    font-size: 0.78rem;
    color: var(--estt-muted);
}

.info-card strong {
    font-size: 0.95rem;
}

.notice-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #e6f4ea;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1.75rem;
    margin: 0 0 1.25rem;
}

.notice-box-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--estt-green);
}

.notice-box p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.button-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
}

button:hover,
.button:hover {
    background: var(--estt-green-hover);
}

.button-secondary {
    background: #fff;
    color: var(--estt-navy);
    border: 1px solid var(--estt-border);
}

.button-secondary:hover {
    background: var(--estt-bg);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions .button {
    margin-top: 0;
}

a {
    color: var(--estt-navy);
}

.footnote {
    margin-top: 1.25rem;
    color: var(--estt-muted);
    font-size: 0.9rem;
}

.footnote-modele a {
    color: #cc1f1a;
}

.legal-notice {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--estt-muted);
    margin: 1rem 0;
}

.link-button {
    color: var(--estt-navy);
    text-decoration: underline;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 44, 82, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 100;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    background: #fff;
    border-radius: 10px;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.modal-box h2 {
    margin-top: 0;
    color: var(--estt-navy-dark);
    font-size: 1.1rem;
}

.modal-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--estt-text);
    text-align: justify;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--estt-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.modal-close:hover {
    background: none;
    color: var(--estt-text);
}

.page-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--estt-border);
    text-align: center;
}

.page-footer .footnote-main {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--estt-text);
}

.page-footer .footnote-support {
    margin: 0;
    font-size: 0.8rem;
    color: var(--estt-muted);
}

.container.admin-wide {
    max-width: 1500px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    background: var(--estt-bg);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-card .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--estt-navy-dark);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--estt-muted);
    margin-top: 0.25rem;
}

.stat-card.stat-warning .stat-number { color: #b7791f; }
.stat-card.stat-success .stat-number { color: var(--estt-green); }
.stat-card.stat-danger .stat-number { color: #cc1f1a; }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    padding: 1.5rem;
}

.chart-card h2 {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    color: var(--estt-navy-dark);
}

.chart-canvas-wrap {
    position: relative;
    height: 300px;
}

@media (max-width: 720px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.admin-filters input[type="text"] {
    flex: 1;
    min-width: 220px;
    width: auto;
}

.admin-filters select {
    width: auto;
}

.admin-filters button,
.admin-filters .button {
    margin-top: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--estt-muted);
}

.button-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--estt-border);
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-table th {
    color: var(--estt-muted);
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background: var(--estt-bg);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
}

.detail-table th,
.detail-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--estt-border);
    font-size: 0.9rem;
}

.detail-table th {
    width: 35%;
    color: var(--estt-muted);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-en_attente {
    background: #fdf3e0;
    color: #b7791f;
}

.badge-valide {
    background: #e6f4ea;
    color: var(--estt-green);
}

.badge-refuse {
    background: #fdecea;
    color: #cc1f1a;
}

.declaration-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.declaration-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--estt-text);
}

.declaration-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.declaration-icon.is-ok {
    background: #e6f4ea;
    color: var(--estt-green);
}

.declaration-icon.is-ko {
    background: #fdecea;
    color: #cc1f1a;
}

.declaration-date {
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--estt-border);
    font-size: 0.8rem;
    color: var(--estt-muted);
}

.admin-files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-files li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--estt-border);
}

.admin-files li:last-child {
    border-bottom: none;
}

.recu-prose {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--estt-text);
}

.toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--estt-green);
    color: #fff;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 44, 82, 0.25);
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 100;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.recu-container {
    max-width: 700px;
}

.recu-container::before {
    background-position: center;
}

.recu-divider {
    border: none;
    border-top: 1px solid var(--estt-border);
    margin: 1.25rem 0;
}

.recu-number {
    text-align: center;
    color: var(--estt-navy);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.recu-section {
    margin-bottom: 1.5rem;
}

.recu-section h2 {
    font-size: 1rem;
    color: var(--estt-navy-dark);
    border-bottom: 1px solid var(--estt-border);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}

.recu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.recu-grid-single {
    grid-template-columns: 1fr;
}

.recu-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.recu-label {
    font-size: 0.8rem;
    color: var(--estt-muted);
    font-weight: 600;
}

.recu-value {
    font-size: 0.95rem;
    color: var(--estt-text);
    font-weight: 600;
}

.recu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--estt-bg);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    text-align: center;
    margin-top: 1.5rem;
}

.recu-footer-text {
    flex: 1;
    text-align: center;
}

.recu-footer p {
    font-size: 0.8rem;
    color: var(--estt-muted);
    margin: 0.3rem 0;
}

.recu-cachet {
    height: 72px;
    width: auto;
    flex-shrink: 0;
}

.recu-contact {
    text-align: center;
    font-size: 0.8rem;
    color: var(--estt-muted);
    margin-top: 0.75rem;
}

/* Reçu v2 */

.recu-v2.recu-container {
    padding: 0;
}

.recu-band {
    background: linear-gradient(120deg, #cfe3f7, #eaf3fc);
    color: var(--estt-navy-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.recu-band-logo img {
    height: 80px;
}

.recu-band-year {
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.3;
}

.recu-band-year strong {
    display: block;
    font-size: 1.15rem;
}

.recu-band-bottom,
.app-footer {
    position: relative;
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    background-image: url('../img/birds.png'), linear-gradient(120deg, #cfe3f7, #eaf3fc);
    background-repeat: no-repeat;
    background-position: right 1rem center, center;
    background-size: 90px auto, cover;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--estt-navy-dark);
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
}

.recu-band-bottom span,
.app-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.recu-body {
    padding: 1.75rem 2rem;
}

.recu-title {
    text-align: center;
    color: var(--estt-navy-dark);
    margin: 0;
    font-size: 1.4rem;
}

.recu-dots {
    width: 60px;
    height: 3px;
    margin: 0.6rem auto 1.25rem;
    background: var(--estt-navy);
    border-radius: 2px;
}

.recu-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 1.25rem;
}

.recu-barcode svg {
    height: 42px;
}

.recu-barcode-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--estt-text);
}

.recu-success {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #eaf3fc;
    border: 1px solid #bcdafc;
    color: var(--estt-navy);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.recu-success span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.recu-card {
    border: 1px solid var(--estt-border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.1rem;
    position: relative;
}

.recu-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.recu-card-num {
    position: absolute;
    top: -0.6rem;
    left: 1.1rem;
    background: #fff;
    padding: 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--estt-muted);
}

.recu-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--estt-navy);
    color: #fff;
    flex-shrink: 0;
}

.recu-card-head h2 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--estt-navy);
    letter-spacing: 0.02em;
}

.recu-grid-icons > div {
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem;
}

.recu-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--estt-bg);
    color: var(--estt-navy);
    flex-shrink: 0;
}

.recu-field-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.recu-grid-icons .recu-label {
    display: block;
    font-size: 0.72rem;
}

.recu-grid-icons .recu-value {
    display: block;
    font-size: 0.88rem;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-split {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(18, 44, 82, 0.1);
    min-height: 340px;
    border-top: 4px solid var(--estt-green);
}

.hero-photo {
    flex: 2 1 0;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 25, 48, 0.92) 0%, rgba(10, 25, 48, 0.78) 40%, rgba(10, 25, 48, 0.35) 75%, rgba(10, 25, 48, 0.15) 100%);
}

.hero-photo-overlay {
    position: relative;
    padding: 2rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #dbe9fb;
    margin: 0 0 0.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-actions .button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    backdrop-filter: blur(2px);
}

.hero-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-panel {
    flex: 1 1 0;
    position: relative;
    background: linear-gradient(155deg, var(--estt-navy-dark) 0%, var(--estt-navy) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1rem;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/zellige.png') no-repeat center center;
    background-size: 320px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-logo-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-logo-box img {
    height: 70px;
    display: block;
}

.hero-panel-title {
    position: relative;
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
}

.landing-section {
    max-width: none;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--estt-navy-dark);
    margin: 1.75rem 0 0.9rem;
}

.section-title:first-child {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .app-footer {
        background-image: linear-gradient(120deg, #cfe3f7, #eaf3fc);
        background-position: center;
        background-size: cover;
    }
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-panel {
        display: none;
    }

    .topbar {
        flex-wrap: wrap;
        row-gap: 0.5rem;
        padding: 0.6rem 1rem;
    }

    .topbar img {
        height: 56px;
    }

    .topbar-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .topbar a {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-photo-overlay {
        padding: 1.5rem;
    }

    .hero-panel {
        padding: 1.5rem;
    }

    .steps {
        gap: 0.6rem;
    }

    .parcours-step {
        flex: 1 1 45%;
    }
}

@media (max-width: 420px) {
    .topbar {
        justify-content: center;
        text-align: center;
    }

    .topbar-links {
        justify-content: center;
        width: 100%;
    }
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.parcours-step {
    flex: 1 1 160px;
    background: var(--estt-bg);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-align: left;
}

.parcours-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--estt-navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.parcours-step h3 {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    color: var(--estt-navy-dark);
}

.parcours-step p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--estt-muted);
}

.filiere-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filiere-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #eaf3fc;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
}

.filiere-code {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 32px;
    padding: 0 0.6rem;
    border-radius: 6px;
    background: var(--estt-navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.filiere-label {
    font-size: 0.92rem;
}

@media print {
    .topbar,
    .no-print {
        display: none !important;
    }

    .container {
        box-shadow: none;
        border: none;
    }

    body {
        background: #fff;
    }
}
