:root {
    --orange: #f0a500;
    --orange-deep: #c47a1a;
    --orange-soft: #fff3d9;
    --ink: #1f2937;
    --muted: #5b6572;
    --line: #181616;
    --green: #1f9d55;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background: #fff;
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ===== HEADER ===== */

.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; z-index: 30; }

.brand { display: flex; align-items: center; gap: 10px; }

.brand .logo-circle {
    width: 42px; height: 42px; border-radius: 50%; background: var(--orange);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.brand .logo-circle svg { width: 22px; height: 22px; }

.brand-name { font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.brand-name span { color: var(--orange); }
.brand-sub { font-size: 0.62rem; letter-spacing: 2px; color: var(--muted); font-weight: 700; }

.site-nav { position: relative; display: flex; align-items: center; gap: 18px; }

.nav-toggle {
    display: none; width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid #e5e0d5;
    background: #fff; align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer; color: var(--ink);
    flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a { display: flex; align-items: center; padding: 9px 13px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink); line-height: 1; }
.nav-links a:hover { color: var(--orange-deep); }
.nav-links a.active { color: var(--orange-deep); background: var(--orange-soft); }

.nav-links .nav-login-mobile { display: none; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
    font-size: 0.92rem; font-weight: 700; border: none; cursor: pointer; line-height: 1;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }

.btn-login {
    background: transparent; color: var(--ink); border: 1.5px solid #e5e0d5; padding: 10px 20px;
}
.btn-login:hover { border-color: var(--orange-deep); color: var(--orange-deep); }

.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid #e5e0d5; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); }

/* ===== HERO (page d'accueil) ===== */

.hero-section { position: relative; background: linear-gradient(135deg, var(--orange-soft) 0%, #fff 55%); padding-bottom: 60px; overflow: hidden; }

.hero-glow {
    position: absolute; top: -180px; right: -160px; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,165,0,.28) 0%, rgba(240,165,0,0) 70%);
    filter: blur(10px); animation: glow-drift 14s ease-in-out infinite alternate; pointer-events: none; z-index: 0;
}

@keyframes glow-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px,50px) scale(1.12); } }

.hero { position: relative; z-index: 1; padding: 40px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.hero-copy { animation: rise-in .7s ease both; }
.mockup-wrap { position: relative; animation: rise-in .7s .1s ease both; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) { .hero-glow, .hero-copy, .mockup-wrap, .float-card { animation: none !important; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
    padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--orange-deep); margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.1rem, 3.3vw, 2.9rem); line-height: 1.15; }
.hero h1 .accent { color: var(--orange); }
.hero .lede { margin-top: 18px; font-size: 1.05rem; color: var(--muted); max-width: 46ch; }

.hero .actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

.demo-links { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.demo-links a { font-weight: 700; color: var(--orange-deep); text-decoration: underline; }

.trust-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.trust-list li { list-style: none; display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.trust-list li i { color: var(--green); font-size: 1.05rem; flex-shrink: 0; }

.browser-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 60px rgba(31,41,55,.14); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: #f7f3ea; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #ddd4c2; }

.mock-body { display: flex; min-height: 300px; }
.mock-sidebar { width: 76px; background: var(--orange-deep); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; flex-shrink: 0; }
.mock-sidebar i { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.mock-sidebar .active-icon { background: #fff; color: var(--orange-deep); width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

.mock-main { flex: 1; padding: 20px; min-width: 0; }
.mock-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 14px; }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-card { background: #fbf8f2; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.mock-card .m-val { font-size: 1.1rem; font-weight: 800; }
.mock-card .m-lbl { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }

.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 10px; background: #fbf8f2; border: 1px solid var(--line); border-radius: 10px; }
.mock-bars i { flex: 1; background: var(--orange); border-radius: 3px 3px 0 0; opacity: .85; }

.float-card {
    position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(31,41,55,.16);
    padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; animation: bob 4s ease-in-out infinite;
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.float-card i { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.float-card.f1 { top: -22px; right: -18px; }
.float-card.f1 i { background: #e8f6ec; color: var(--green); }
.float-card.f2 { bottom: -20px; left: -22px; animation-delay: .6s; }
.float-card.f2 i { background: var(--orange-soft); color: var(--orange-deep); }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; }

.mockup-mini { max-width: 480px; margin: 0 auto; }
.mockup-mini .mock-body { min-height: 220px; }
.mockup-mini .mock-sidebar { width: 60px; }

/* ===== BANNIÈRE DE PAGE ===== */

.page-hero { background: linear-gradient(135deg, var(--orange-soft) 0%, #fff 70%); padding: 54px 0 44px; text-align: center; }
.page-hero .section-eyebrow { display: inline-block; }
.page-hero h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-top: 8px; }
.page-hero p { margin-top: 14px; color: var(--muted); font-size: 1rem; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ===== SECTIONS ===== */

section { padding: 70px 0; }

.section-head { text-align: center; max-width: 58ch; margin: 0 auto 46px; }
.section-eyebrow { font-size: 0.8rem; font-weight: 800; color: var(--orange-deep); letter-spacing: 0.3px; }
.section-head h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1rem; }

/* Features */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; text-align: left; transition: box-shadow .2s ease, transform .2s ease; min-width: 0; }
.feature-card:hover { box-shadow: 0 16px 30px rgba(31,41,55,.08); transform: translateY(-3px); }

.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; }
.feature-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

/* Avantages — cartes cliquables par rôle */

.roles-section { background: #fbf8f2; }

.role-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.role-tab {
    padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font-size: 0.9rem; font-weight: 700; color: var(--muted); cursor: pointer;
}
.role-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.role-panel { display: none; background: #fff; border-radius: 18px; padding: 40px; border-top: 4px solid var(--orange); }
.role-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.role-panel:nth-of-type(2) { border-top-color: var(--green); }
.role-panel:nth-of-type(3) { border-top-color: var(--ink); }

.role-panel .role-headline { font-size: 1.3rem; margin-bottom: 14px; }
.role-panel .role-benefit { color: var(--orange-deep); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }

.role-panel ul { list-style: none; margin: 0; padding: 0; }
.role-panel li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--ink); padding: 8px 0; }
.role-panel li i { color: var(--green); margin-top: 3px; }

.role-panel-visual {
    background: var(--orange-soft); border-radius: 14px; padding: 30px; display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: var(--orange-deep); min-height: 180px;
}

/* Isolation multi-tenant (accueil) */

.isolation-card { background: var(--ink); border-radius: 20px; padding: 54px 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; color: #fff; }
.isolation-card h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: #fff; }
.isolation-card p { margin-top: 14px; color: #d5dae1; font-size: 0.96rem; max-width: 42ch; }

.stall-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stall { flex: 1; min-width: 130px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 18px 14px; text-align: center; }
.stall .s-dot { width: 30px; height: 30px; border-radius: 8px; background: var(--orange); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.stall span { display: block; font-size: 0.78rem; color: #cdd3da; margin-top: 4px; }

/* Teaser tarifs (accueil) */

.pricing-teaser {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: var(--orange-soft); border: 1px solid var(--line); border-radius: 18px; padding: 30px 34px; margin-top: 40px;
}
.pricing-teaser h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pricing-teaser p { color: var(--ink); font-size: 0.92rem; }

/* Bénéfices (accueil) */

.benefits-section { margin-top: 60px; }
.benefits-section h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); text-align: center; margin-bottom: 36px; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.benefit-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; text-align: left; }
.benefit-item i { font-size: 1.4rem; color: var(--orange-deep); margin-bottom: 12px; display: block; }
.benefit-item h4 { font-size: 1rem; margin-bottom: 8px; }
.benefit-item p { font-size: 0.88rem; color: var(--muted); }

/* Raccourcis (accueil) */

.quick-links { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.quick-link {
    display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 20px; min-width: 0; transition: box-shadow .2s ease, transform .2s ease;
}

.quick-link:hover { box-shadow: 0 16px 30px rgba(31,41,55,.08); transform: translateY(-3px); }

.quick-link .ql-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-soft); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.quick-link h4 { font-size: 0.95rem; margin-bottom: 3px; }
.quick-link p { font-size: 0.82rem; color: var(--muted); }

/* Contact — deux colonnes strictement séparées */

.contact-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }

.contact-points { display: flex; flex-direction: column; gap: 26px; }
.contact-point { display: flex; gap: 14px; }
.contact-point .cp-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-soft); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-point h4 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-point p { font-size: 0.88rem; color: var(--muted); }
.contact-point p a { text-decoration: underline; color: var(--orange-deep); }

.contact-form {
    background: #fbf8f2; border: 1px solid var(--line); border-radius: 18px; padding: 34px;
    min-width: 0; box-shadow: 0 12px 30px rgba(31,41,55,.05);
}

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e0d5; border-radius: 8px; font-family: 'Manrope', sans-serif; font-size: 0.94rem; background: #fff; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); }
.form-row textarea { resize: vertical; min-height: 90px; }

.alert-success { background: #e8f6ec; border: 1px solid #bfe3ca; color: #1c6b3a; padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 18px; }
.alert-errors { background: #fbeae9; border: 1px solid #f0c4c1; color: #8a2e28; padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 18px; }

/* Tarifs — grille de 3 formules */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.pricing-plan {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px;
    display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(31,41,55,.05); position: relative;
}
.pricing-plan h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pricing-plan > p { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }

.pricing-amount { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.pricing-amount span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }

.pricing-plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex-grow: 1; }
.pricing-plan li { display: flex; gap: 10px; padding: 7px 0; font-size: 0.88rem; }
.pricing-plan li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }

.pricing-plan.featured { border-color: var(--orange); box-shadow: 0 20px 40px rgba(240,165,0,.15); transform: scale(1.02); }
.pricing-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 800;
    padding: 5px 14px; border-radius: 999px;
}

/* ===== FOOTER ===== */

footer { background: var(--ink); color: #cdd3da; padding: 54px 0 26px; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }

.footer-col h5 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; }
.footer-col p { font-size: 0.86rem; color: #b6bcc4; max-width: 32ch; }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.86rem; color: #cdd3da; }
.footer-col ul a:hover { color: #fff; }

.footer-contact-item { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: #cdd3da; margin-bottom: 10px; }
.footer-contact-item a { color: #cdd3da; }
.footer-contact-item a:hover { color: #fff; text-decoration: underline; }
.footer-contact-item i { color: var(--orange); }

.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff; transition: background .2s ease; }
.social-row a:hover { background: var(--orange); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.footer-bottom .f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 0.9rem; }
.footer-bottom small { color: #9aa1ab; font-size: 0.82rem; }

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .isolation-card { grid-template-columns: 1fr; padding: 36px 26px; }
    .contact-block { grid-template-columns: 1fr; gap: 40px; }
    .quick-links { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .role-panel.active { grid-template-columns: 1fr; }
    .role-panel-visual { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-plan.featured { transform: none; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: flex; }
    .header-login-desktop { display: none; }

    .nav-links {
        position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
        background: #fff; border: 1px solid var(--line); border-radius: 12px;
        box-shadow: 0 16px 34px rgba(31,41,55,.14); padding: 10px;
        flex-direction: column; align-items: stretch; gap: 2px; display: none; z-index: 40;
    }

    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 12px 12px; }

    .nav-links .nav-login-mobile {
        display: flex; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line);
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .wrap { padding: 0 18px; }
    .feature-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .mock-cards { grid-template-columns: 1fr 1fr; }
    .mock-sidebar { width: 56px; }
    .float-card { position: static; margin-top: 12px; animation: none; }
    .hero .actions { flex-direction: column; align-items: stretch; }
    .stall-row { flex-direction: column; }
    section { padding: 50px 0; }
    .page-hero { padding: 40px 0 32px; }
    .isolation-card { padding: 30px 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .contact-form { padding: 22px; }
    .role-tabs { gap: 8px; }
    .role-tab { padding: 9px 16px; font-size: 0.85rem; }
    .role-panel { padding: 26px; }
    .pricing-teaser { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
    .brand-name { font-size: 1rem; }
    .btn { padding: 10px 18px; font-size: 0.86rem; }
    .hero h1 { font-size: 1.8rem; }
    .mock-cards { grid-template-columns: 1fr; }
}