:root {
    --bleu: #003f88;
    --bleu-fonce: #06224a;
    --bleu-clair: #eaf5ff;
    --rouge: #d71920;
    --texte: #102033;
    --gris: #f4f7fb;
    --blanc: #ffffff;
    --ombre: 0 20px 50px rgba(0, 40, 90, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texte);
    background: var(--blanc);
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dce8f5;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo img {
    height: 55px;
    width: auto;
}

nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

nav a {
    color: var(--bleu-fonce);
    text-decoration: none;
    font-weight: 800;
}

nav a:hover {
    color: var(--rouge);
}

/* HERO ACCUEIL */

.hero {
    min-height: auto;
    padding: 70px 0;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(0, 93, 170, 0.18), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #eaf5ff 55%, #ffffff 100%);
}

.hero-content {
    max-width: 900px;
}

.badge {
    display: inline-block;
    background: var(--bleu);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-logo {
    text-align: center;
    margin: 10px 0 25px;
}

.hero-logo img {
    width: min(380px, 80%);
    height: auto;
    display: inline-block;
}

h1 {
    font-size: clamp(52px, 9vw, 110px);
    margin: 0;
    color: var(--bleu-fonce);
    letter-spacing: -3px;
}

.hero h2 {
    color: var(--rouge);
    font-size: clamp(26px, 4vw, 42px);
    margin: 18px 0;
}

.hero p {
    font-size: 22px;
    line-height: 1.6;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 15px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    display: inline-block;
}

.btn-primary {
    background: var(--rouge);
    color: white;
    box-shadow: var(--ombre);
}

.btn-secondary {
    background: var(--bleu-fonce);
    color: white;
}

/* HERO PETITES PAGES */

.hero-small {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff, #eaf5ff);
}

.hero-small h1 {
    font-size: clamp(42px, 7vw, 82px);
}

.hero-small p {
    font-size: 22px;
    line-height: 1.6;
}

/* SECTIONS */

.section {
    padding: 85px 0;
}

.section h2 {
    font-size: clamp(34px, 5vw, 58px);
    color: var(--bleu-fonce);
    margin: 0 0 45px;
    text-align: center;
}

.light {
    background: var(--gris);
}

/* COMPARAISON */

.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.comparison-box {
    background: white;
    padding: 35px;
    border-radius: 26px;
    box-shadow: var(--ombre);
}

.comparison-box h3 {
    font-size: 30px;
    margin-top: 0;
}

.comparison-box.old {
    border-top: 8px solid var(--rouge);
}

.comparison-box.new {
    border-top: 8px solid #18a957;
}

.comparison-box ul {
    padding-left: 22px;
    font-size: 20px;
    line-height: 1.8;
}

.arrow {
    font-size: 52px;
    font-weight: 900;
    color: var(--bleu);
}

/* CARTES */

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: white;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0, 40, 90, 0.10);
    border: 1px solid #dce8f5;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ombre);
}

.card span {
    font-size: 44px;
}

.card h3 {
    font-size: 24px;
    color: var(--bleu-fonce);
    margin-bottom: 10px;
}

.card p {
    font-size: 17px;
    line-height: 1.5;
}

/* SECTIONS PETIT-LAC */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sections-grid div {
    background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu));
    color: white;
    padding: 28px;
    border-radius: 22px;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    box-shadow: var(--ombre);
}

.center-text {
    text-align: center;
    font-size: 22px;
    margin-top: 35px;
    font-weight: 700;
}

/* VISION FUTURE */

.future {
    background: linear-gradient(135deg, rgba(6, 34, 74, 0.95), rgba(0, 79, 159, 0.95));
    color: white;
}

.future h2 {
    color: white;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.future-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    padding: 34px;
    text-align: center;
    font-size: 46px;
    backdrop-filter: blur(8px);
}

.future-card h3 {
    font-size: 22px;
    margin-bottom: 0;
}

/* TABLEAUX */

.tableau {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ombre);
}

.tableau th {
    background: var(--bleu-fonce);
    color: white;
    padding: 18px;
    text-align: left;
}

.tableau td {
    padding: 18px;
    border-bottom: 1px solid #e6eef7;
}

.ok {
    color: #0ea84a;
    font-weight: bold;
}

.attention {
    color: #d98200;
    font-weight: bold;
}

.danger {
    color: #d71920;
    font-weight: 900;
}

/* FORMULAIRES DEMO */

.defaut-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: center;
}

.form-demo {
    background: white;
    padding: 35px;
    border-radius: 28px;
    box-shadow: var(--ombre);
    border: 1px solid #dce8f5;
}

.form-demo label {
    display: block;
    font-weight: 900;
    color: var(--bleu-fonce);
    margin: 16px 0 8px;
}

.form-demo input,
.form-demo select,
.form-demo textarea {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #cbd9ea;
    font-size: 16px;
}

.form-demo textarea {
    min-height: 110px;
    resize: vertical;
}

.form-demo button {
    margin-top: 22px;
    background: var(--rouge);
    color: white;
    border: none;
    padding: 16px 22px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    width: 100%;
}

/* TELEPHONE DEMO */

.phone-demo {
    background: linear-gradient(180deg, #0b2d5c, #004f9f);
    color: white;
    border-radius: 38px;
    padding: 35px;
    box-shadow: var(--ombre);
    min-height: 430px;
    border: 10px solid #071b36;
}

.phone-top {
    width: 90px;
    height: 8px;
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
    margin: 0 auto 35px;
}

.status {
    margin-top: 30px;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 900;
}

.status.orange {
    background: #ff9f1c;
    color: #1c1200;
}

/* DASHBOARD */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--ombre);
}

.stat-icon {
    font-size: 48px;
}

.stat-number {
    font-size: 52px;
    font-weight: 900;
    color: var(--bleu-fonce);
    margin-top: 10px;
}

.stat-label {
    font-size: 18px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dashboard-card {
    background: white;
    padding: 35px;
    border-radius: 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ombre);
    transition: 0.25s;
}

.dashboard-card:hover {
    transform: translateY(-8px);
}

.dashboard-card span {
    font-size: 48px;
}

.dashboard-card h3 {
    color: var(--bleu-fonce);
}

/* FOOTER */

footer {
    background: var(--bleu-fonce);
    color: white;
    padding: 55px 0;
    text-align: center;
}

footer h2 {
    font-size: 44px;
    margin: 0 0 10px;
}

footer p {
    font-size: 18px;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        justify-content: center;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .grid,
    .sections-grid,
    .future-grid,
    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .defaut-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 45px;
    }

    nav {
        gap: 12px;
        font-size: 14px;
    }

    .grid,
    .sections-grid,
    .future-grid,
    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 55px 0;
    }

    .hero-logo img {
        width: min(300px, 85%);
    }
}
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(0, 93, 170, 0.20), transparent 35%),
        linear-gradient(135deg, #ffffff, #eaf5ff);
    padding: 30px;
}

.login-card {
    width: min(460px, 100%);
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--ombre);
    text-align: center;
}

.login-logo {
    width: 220px;
    margin-bottom: 20px;
}

.login-card h1 {
    font-size: 38px;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--bleu-fonce);
    font-weight: 700;
    margin-bottom: 25px;
}

.login-card form {
    text-align: left;
}

.login-card label {
    display: block;
    font-weight: 900;
    color: var(--bleu-fonce);
    margin: 16px 0 8px;
}

.login-card input {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #cbd9ea;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--rouge);
    color: white;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
}

.login-error {
    background: #ffe6e6;
    color: #b00020;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 20px;
}

.login-back {
    display: inline-block;
    margin-top: 22px;
    color: var(--bleu-fonce);
    font-weight: 800;
    text-decoration: none;
}