/* Bloqo – site vitrine */

:root {
    --violet-950: #1a0b3d;
    --violet-900: #2e1065;
    --violet-700: #5b21b6;
    --violet-600: #6d28d9;
    --violet-100: #ede9fe;
    --green: #16a34a;
    --green-bright: #4ade80;
    --red: #dc2626;
    --amber: #b45309;
    --bg: #faf8ff;
    --surface: #ffffff;
    --surface-tint: #f3effc;
    --text: #1a1430;
    --muted: #625a78;
    --border: #e6e0f3;
    --link: #5b21b6;
    --radius: 18px;
    --shadow: 0 1px 2px rgb(26 11 61 / 6%), 0 8px 24px rgb(26 11 61 / 6%);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0a1d;
        --surface: #191230;
        --surface-tint: #1f1640;
        --text: #eeeaf7;
        --muted: #a69fbd;
        --border: #2c2350;
        --link: #c4b5fd;
        --green: #4ade80;
        --red: #f87171;
        --amber: #fbbf24;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--link);
}

:focus-visible {
    outline: 3px solid var(--green-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 760px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.875rem;
}

.strong {
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}

.skip:focus {
    top: 12px;
}

/* En-tête */

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgb(26 11 61 / 88%);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.topbar nav {
    display: flex;
    gap: 22px;
}

.topbar nav a {
    color: rgb(255 255 255 / 82%);
    font-size: 0.95rem;
    text-decoration: none;
}

.topbar nav a:hover {
    color: #fff;
}

@media (max-width: 760px) {
    .topbar nav a:not(:nth-child(2)) {
        display: none;
    }
}

/* Boutons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--green-bright);
    color: #052e14;
    box-shadow: 0 6px 20px rgb(74 222 128 / 30%);
}

.button.ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%);
}

/* Accueil */

.hero {
    background:
        radial-gradient(1000px 500px at 85% 10%, rgb(109 40 217 / 55%), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgb(74 222 128 / 12%), transparent 60%),
        linear-gradient(160deg, var(--violet-950), var(--violet-900));
    color: #fff;
    overflow: hidden;
}

section.hero {
    padding: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 88px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    font-size: 0.9rem;
    font-weight: 600;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 4px rgb(74 222 128 / 25%);
}

.hero h1 {
    margin-top: 20px;
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    font-weight: 800;
}

.lead {
    max-width: 34em;
    font-size: 1.2rem;
    color: rgb(255 255 255 / 85%);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: rgb(255 255 255 / 78%);
}

.badges li::before {
    content: "✓ ";
    color: var(--green-bright);
    font-weight: 700;
}

/* Téléphone (illustration) */

.phone {
    justify-self: center;
    width: 290px;
    padding: 12px;
    border-radius: 48px;
    background: #0b0617;
    box-shadow: 0 30px 80px rgb(0 0 0 / 45%), inset 0 0 0 2px rgb(255 255 255 / 10%);
    transform: rotate(3deg);
}

.phone-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 560px;
    padding: 24px 18px;
    border-radius: 38px;
    background: linear-gradient(180deg, #3b1a7a 0%, #1a0b3d 70%);
    text-align: center;
}

.phone-time {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.call {
    margin-top: 70px;
}

.call-label {
    margin: 0;
    font-size: 0.9rem;
    color: rgb(255 255 255 / 70%);
}

.call-number {
    margin: 6px 0;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.call-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgb(220 38 38 / 25%);
    color: #fecaca;
    font-size: 0.85rem;
    font-weight: 600;
}

.call-buttons {
    display: flex;
    gap: 90px;
    margin-top: auto;
    margin-bottom: 110px;
}

.round {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
}

.decline {
    background: #ef4444;
}

.accept {
    background: #22c55e;
}

.notice {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgb(255 255 255 / 14%);
    backdrop-filter: blur(10px);
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.35;
}

.notice p {
    margin: 0;
}

.notice-title {
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .phone {
        transform: none;
    }
}

@media (max-width: 560px) {
    .phone {
        width: 250px;
        border-radius: 42px;
    }

    .phone-screen {
        height: 470px;
        border-radius: 32px;
    }

    .call {
        margin-top: 48px;
    }

    .call-number {
        font-size: 1.6rem;
    }

    .call-buttons {
        gap: 70px;
        margin-bottom: 96px;
    }
}

/* Sections */

section {
    padding: 88px 0;
}

.manifesto {
    text-align: center;
    font-size: 1.15rem;
}

.manifesto p {
    color: var(--muted);
}

.manifesto .strong {
    color: var(--text);
}

.principles {
    padding-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--violet-100);
    color: var(--violet-700);
}

@media (prefers-color-scheme: dark) {
    .icon {
        background: #2a1d55;
        color: #c4b5fd;
    }
}

@media (max-width: 980px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.how {
    background: var(--surface-tint);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--violet-700);
    color: #fff;
    font-weight: 700;
}

.steps p {
    color: var(--muted);
}

@media (max-width: 800px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.arcep-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.arcep p {
    color: var(--muted);
    font-size: 1.08rem;
}

.prefixes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prefixes li {
    padding: 14px 0;
    border-radius: 14px;
    background: var(--violet-900);
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    letter-spacing: 0.03em;
}

@media (max-width: 800px) {
    .arcep-inner {
        grid-template-columns: 1fr;
    }

    .prefixes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Vérification d'un numéro */

.check {
    background: var(--surface-tint);
    text-align: center;
}

.check-form {
    display: flex;
    gap: 10px;
    margin: 28px auto 0;
    max-width: 520px;
}

.check-form input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 20px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.check-form input:focus {
    border-color: var(--violet-600);
    outline: none;
    box-shadow: 0 0 0 4px rgb(109 40 217 / 20%);
}

.check .button.primary {
    min-height: 52px;
}

.result {
    max-width: 520px;
    margin: 24px auto 0;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-left-width: 6px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: left;
}

.result p {
    margin: 0 0 6px;
}

.result-number {
    font-weight: 700;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.result-title {
    font-weight: 700;
}

.result-danger {
    border-left-color: var(--red);
}

.result-danger .result-title {
    color: var(--red);
}

.result-warn {
    border-left-color: var(--amber);
}

.result-warn .result-title {
    color: var(--amber);
}

.result-ok {
    border-left-color: var(--green);
}

.result-ok .result-title {
    color: var(--green);
}

.result-neutral {
    border-left-color: var(--muted);
}

@media (max-width: 480px) {
    .check-form {
        flex-direction: column;
    }
}

/* Questions */

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    position: relative;
    padding: 20px 40px 20px 0;
    font-weight: 600;
    font-size: 1.08rem;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--violet-600);
    font-size: 1.5rem;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    color: var(--muted);
}

/* Pages simples (mentions légales, erreurs) */

.page {
    min-height: 60vh;
}

.page h2 {
    margin-top: 1.8em;
    font-size: 1.3rem;
}

/* Pied de page */

.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-weight: 700;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
