:root {
    --green: #1a7a61;
    --green-dark: #145f4c;
    --green-light: #e8f6f2;
    --mint: #48c9b0;
    --navy: #0a2342;
    --navy-light: #0d2d56;
    --white: #ffffff;
    --bg: #f4f7f6;
    --text: #1e2a24;
    --text-muted: #6b7e77;
    --border: #dde8e4;
    --shadow-sm: 0 2px 12px rgba(10, 35, 66, .07);
    --shadow-md: 0 8px 32px rgba(10, 35, 66, .10);
    --radius: 18px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 68px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: var(--shadow-sm);
    gap: 10px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--green), var(--mint));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.2;
}

.logo-text span {
    font-size: .72rem;
    color: var(--text-muted);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-center a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: .88rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-center a:hover {
    color: var(--green);
    background: var(--green-light);
}

.btn-nav-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-nav-login:hover {
    background: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 122, 97, 0.3);
}

/* HERO */
.hero {
    padding: 48px 5% 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-banner {
    background: linear-gradient(135deg, var(--navy), var(--green));
    border-radius: var(--radius);
    padding: 44px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(72, 201, 176, 0.1);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: .78rem;
    margin-bottom: 20px;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-banner h1 span {
    color: var(--mint);
}

.hero-banner p {
    margin-top: 12px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .8);
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--navy);
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* SECTION HEADER */
.section-header {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 5% 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-family: 'Syne';
    font-size: 1.35rem;
    color: var(--navy);
}

/* MODULES */
.modules {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5% 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.module-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.module-icon.icon-green {
    background: var(--green-light);
    color: var(--green);
}

.module-icon.icon-warn {
    background: #fff5e6;
    color: #d68a00;
}

.module-card h3 {
    font-family: 'Syne';
    font-size: 1.05rem;
    color: var(--navy);
}

.module-card p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.module-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--text-muted);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background: #2ecc71;
}

.dot-warn {
    background: #f39c12;
}

.main-footer {
    background: var(--navy);
    color: white;
    padding: 28px 5%;
    margin-top: 40px;
    text-align: center;
    font-size: .9rem;
}

/* ============================================================ */
/* RESPONSIVE DESIGN */
/* ============================================================ */

/* Tablettes (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 30px 5% 30px;
    }

    .hero-banner {
        min-height: 240px;
        padding: 36px;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }

    .modules {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Tablettes petites et grands téléphones (600px - 768px) */
@media screen and (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 4%;
        flex-wrap: nowrap;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .logo-text strong {
        font-size: 0.9rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .nav-center {
        gap: 2px;
    }

    .nav-center a {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .btn-nav-login {
        font-size: 0.78rem;
        padding: 7px 16px;
        gap: 6px;
    }

    .btn-nav-login span {
        display: none;
    }

    .hero {
        padding: 24px 4% 24px;
        gap: 20px;
    }

    .hero-banner {
        padding: 28px;
        min-height: 200px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
    }

    .hero-banner p {
        font-size: 0.82rem;
        max-width: 100%;
    }

    .btn-primary {
        font-size: 0.82rem;
        padding: 9px 20px;
    }

    .section-header {
        padding: 30px 4% 16px;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .modules {
        padding: 0 4% 40px;
        gap: 14px;
    }

    .module-card {
        padding: 24px;
    }

    .module-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .module-card h3 {
        font-size: 0.95rem;
    }

    .module-card p {
        font-size: 0.8rem;
    }
}

/* Téléphones (moins de 600px) */
@media screen and (max-width: 600px) {
    .navbar {
        height: 56px;
        padding: 0 3%;
        gap: 6px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .logo-text strong {
        font-size: 0.8rem;
    }

    .logo-text span {
        font-size: 0.55rem;
    }

    .nav-center {
        gap: 0;
    }

    .nav-center a {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .nav-center a:last-child {
        display: none;
    }

    .btn-nav-login {
        font-size: 0.7rem;
        padding: 6px 14px;
        gap: 4px;
    }

    .btn-nav-login i {
        font-size: 0.7rem;
    }

    .hero {
        padding: 16px 3% 20px;
        gap: 16px;
    }

    .hero-banner {
        padding: 24px 20px;
        min-height: 180px;
        border-radius: 14px;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    .hero-banner h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .hero-banner p {
        font-size: 0.75rem;
        margin-top: 8px;
        max-width: 100%;
    }

    .hero-actions {
        margin-top: 16px;
    }

    .btn-primary {
        font-size: 0.75rem;
        padding: 8px 16px;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }

    .section-header {
        padding: 20px 3% 12px;
    }

    .section-title {
        font-size: 1rem;
    }

    .modules {
        grid-template-columns: 1fr;
        padding: 0 3% 30px;
        gap: 12px;
    }

    .module-card {
        padding: 20px;
        border-radius: 14px;
        gap: 12px;
    }

    .module-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .module-card h3 {
        font-size: 0.9rem;
    }

    .module-card p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .module-footer {
        font-size: 0.7rem;
        padding-top: 10px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .main-footer {
        padding: 20px 3%;
        margin-top: 20px;
        font-size: 0.75rem;
    }
}

/* Très petits téléphones (moins de 400px) */
@media screen and (max-width: 400px) {
    .navbar {
        height: 50px;
        padding: 0 2%;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .logo-text strong {
        font-size: 0.7rem;
    }

    .logo-text span {
        display: none;
    }

    .nav-center a {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .btn-nav-login {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .hero-banner {
        padding: 18px 16px;
        min-height: 160px;
    }

    .hero-banner h1 {
        font-size: 1rem;
    }

    .hero-banner p {
        font-size: 0.7rem;
    }

    .btn-primary {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .module-card {
        padding: 16px;
    }

    .module-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .module-card h3 {
        font-size: 0.82rem;
    }

    .module-card p {
        font-size: 0.72rem;
    }
}

/* Orientation paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 12px 3% 16px;
        gap: 12px;
    }

    .hero-banner {
        min-height: 140px;
        padding: 16px 20px;
    }

    .hero-banner h1 {
        font-size: 1.1rem;
    }

    .hero-banner p {
        font-size: 0.7rem;
        margin-top: 4px;
    }

    .hero-actions {
        margin-top: 8px;
    }

    .btn-primary {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .section-header {
        padding: 12px 3% 8px;
    }

    .modules {
        padding: 0 3% 16px;
        gap: 10px;
    }

    .module-card {
        padding: 14px;
        gap: 8px;
    }

    .module-card p {
        font-size: 0.7rem;
    }

    .main-footer {
        padding: 12px 3%;
        margin-top: 12px;
        font-size: 0.7rem;
    }
}

/* Support pour les écrans haute résolution (Retina) */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .hero-banner {
        background: linear-gradient(135deg, var(--navy), var(--green));
    }
    
    .hero-banner::before {
        opacity: 0.8;
    }
}