@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #FAFAF9;
    color: #1a1a1a;
}

/* NAVBAR */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e8e6e0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #6C3FD1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo .logo-badge {
    background: #6C3FD1;
    color: #fff;
    border-radius: 8px;
    padding: 2px 9px;
    font-size: 14px;
}

.navbar-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar-links a {
    font-size: 14px;
    color: #5F5E5A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.navbar-links a:hover { color: #1a1a1a; }

.navbar-links .btn-login {
    background: #6C3FD1;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s;
}

.navbar-links .btn-login:hover { background: #5a31b8; color: #fff; }

/* HERO */
.hero {
    text-align: center;
    padding: 64px 28px 48px;
}

.hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero h1 em {
    color: #6C3FD1;
    font-style: normal;
}

.hero p {
    font-size: 16px;
    color: #5F5E5A;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
}

.hero-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    font-size: 12.5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-purple { background: #EEEDFE; color: #3C3489; }
.badge-gray   { background: #F1EFE8; color: #444441; }

/* GRILLE APPLICATIONS */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 40px 64px;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card {
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.app-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
}

.app-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.app-card h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.app-card p {
    font-size: 13.5px;
    line-height: 1.55;
}

/* Couleurs par app */
.app-card.blue  { background: #EFF8FF; border: 1px solid #B5D4F4; }
.app-card.orange{ background: #FFF4ED; border: 1px solid #FAC775; }
.app-card.green { background: #EDFAF4; border: 1px solid #9FE1CB; }

.app-card.blue  h3 { color: #0C447C; }
.app-card.orange h3 { color: #633806; }
.app-card.green h3 { color: #085041; }

.app-card.blue  p  { color: #185FA5; }
.app-card.orange p  { color: #854F0B; }
.app-card.green p  { color: #0F6E56; }

.app-card.blue  .app-card-arrow { color: #378ADD; }
.app-card.orange .app-card-arrow { color: #F97316; }
.app-card.green .app-card-arrow { color: #10B981; }

.app-card.blue  .app-card-icon { background: #378ADD; }
.app-card.orange .app-card-icon { background: #F97316; }
.app-card.green .app-card-icon { background: #10B981; }

/* CONTENU PRINCIPAL */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

/* FOOTER */
.footer {
    border-top: 1px solid #e8e6e0;
    padding: 32px 20px 20px;
    background: #fff;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.footer-sitemap {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 24px;
    text-align: left;
}

.footer .footer-col-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.footer-sitemap ul { list-style: none; }
.footer-sitemap li { font-size: 14px; margin-bottom: 6px; }
.footer-sitemap li ul { margin: 6px 0 0 14px; }
.footer-sitemap a { color: #5F5E5A; text-decoration: none; }
.footer-sitemap a:hover { color: #6C3FD1; text-decoration: underline; }
.footer-soon { color: #C5C3BB; }

.footer .footer-copy { font-size: 13px; color: #888780; }

/* FORMULAIRE APPRECIA */
.form-panel {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e8e6e0;
}

.form-panel h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #0C447C;
}

.form-field { margin-bottom: 20px; }

.form-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888780;
    margin-bottom: 7px;
}

.form-field input[type=text],
.form-field select {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid #e8e6e0;
    border-radius: 8px;
    background: #FAFAF9;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus { border-color: #378ADD; }

.form-field .checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-field .checkboxes label {
    font-size: 12.5px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F1EFE8;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.btn-generate {
    width: 100%;
    background: #378ADD;
    color: #fff;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.btn-generate:hover { background: #185FA5; }

/* RÉSULTAT APPRECIA */
.result-panel {
    background: #EFF8FF;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #B5D4F4;
}

.result-panel h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #0C447C;
}

.result-text {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 12px;
    border: 1px solid #B5D4F4;
}

.result-meta {
    font-size: 12px;
    color: #185FA5;
    margin-bottom: 12px;
}

.btn-copy {
    background: #fff;
    color: #185FA5;
    border: 1px solid #378ADD;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-copy:hover { background: #EFF8FF; }

.result-empty {
    color: #888780;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
}

.error-box {
    background: #FCEBEB;
    border: 1px solid #F7C1C1;
    border-radius: 10px;
    padding: 16px;
    color: #A32D2D;
    font-size: 14px;
}

/* PAGE HEADER */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e6e0;
}

.page-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0C447C;
    margin-bottom: 6px;
}

.page-header p { font-size: 15px; color: #5F5E5A; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
    .apps-grid { padding: 0 20px 48px; }
    .navbar { padding: 0 20px; }
    .navbar-links a:not(.btn-login) { display: none; }
    .footer-sitemap { flex-direction: column; align-items: center; gap: 24px; }
    .footer-col { text-align: center; }
    .footer-sitemap li ul { margin-left: 0; }
}