:root {
    --navy-900: #0c1e35;
    --navy-800: #142f52;
    --navy-700: #1e4273;
    --blue-accent: #1d5bbf;
    --red-accent: #c9302c;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #526071;
    --border-color: #dce3ec;
    --radius: 6px;
    --shadow: 0 4px 16px rgba(12, 30, 53, 0.06);
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Bandeau supérieur */
.top-banner {
    background-color: var(--navy-900);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.top-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-status {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
}

/* En-tête & Navigation */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--navy-900);
}

.brand-emblem {
    display: flex;
    width: 12px;
    height: 36px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.emblem-bar { flex: 1; }
.emblem-bar.blue { background: #002395; }
.emblem-bar.white { background: #ffffff; }
.emblem-bar.red { background: #ed2939; }

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

.brand-acronym {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--blue-accent);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-nav {
    background: var(--navy-800);
    color: #fff !important;
    padding: 0.5rem 1rem;
}

.btn-nav:hover {
    background: var(--navy-700);
}

.btn-primary {
    background: var(--blue-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-700);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--navy-900);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--navy-800);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 0.75rem;
}

.page-header .eyebrow, .split-feature .eyebrow {
    color: var(--blue-accent);
}

.hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin: 0 0 1.2rem;
}

.hero-lead {
    font-size: 1.08rem;
    color: #e2e8f0;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dot.green {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
}

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

.spec-list li strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
}

.spec-list li span {
    font-size: 0.88rem;
    color: #cbd5e1;
}

/* Sections & Grilles */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.page-header h1 {
    margin: 0 0 0.75rem;
    color: var(--navy-900);
    font-size: 2rem;
}

.page-header .lead {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin: 0 0 0.5rem;
    color: var(--navy-900);
    font-size: 1.75rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
}

.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.three-cols { grid-template-columns: repeat(3, 1fr); }
.two-cols { grid-template-columns: repeat(2, 1fr); }

.card, .news-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.card-num {
    font-weight: 800;
    color: var(--blue-accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card h3, .news-card h3 {
    margin: 0 0 0.75rem;
    color: var(--navy-900);
    font-size: 1.18rem;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Split feature & Security box */
.split-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.split-feature h2 {
    margin: 0 0 0.85rem;
    color: var(--navy-900);
    font-size: 1.65rem;
    line-height: 1.25;
}

.check-list {
    padding-left: 1.25rem;
    margin: 1.25rem 0 1.75rem;
}

.check-list li {
    margin-bottom: 0.6rem;
}

.security-box {
    background: var(--navy-900);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius);
}

.security-box h3 {
    margin-top: 0;
    color: #93c5fd;
}

.code-snippet {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.25rem 0;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
}

.code-snippet .arrow {
    display: block;
    color: #4ade80;
    margin: 0.5rem 0;
    font-weight: 600;
}

.small-muted {
    font-size: 0.86rem;
    color: #94a3b8;
    margin-bottom: 0;
}

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

/* Encarts captures d'écran (OPESD / Agora) */
.screens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.screen-card {
    margin: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.screen-preview {
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.screen-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.screen-placeholder strong {
    color: var(--navy-900);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.screen-body {
    padding: 1.25rem 1.35rem;
}

.screen-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: var(--navy-900);
}

.screen-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA Banner */
.cta-banner {
    margin-top: 3rem;
    background: var(--navy-800);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-banner h3 { margin: 0 0 0.4rem; }
.cta-banner p { margin: 0; color: #cbd5e1; }
.cta-banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Formulaire Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.form-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--navy-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

code {
    background: rgba(15, 23, 42, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
}

.security-box code {
    background: transparent;
    color: #f8fafc;
}

/* Footer */
.site-footer {
    background: var(--navy-900);
    color: #cbd5e1;
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.site-footer h4 {
    color: #fff;
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.84rem;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 860px) {
    .hero-grid,
    .three-cols,
    .two-cols,
    .screens-grid,
    .split-feature,
    .contact-layout,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.85rem;
    }
}