/* ==========================================================================
   Thomas Paramelle — feuille de style
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Couleurs (clair par défaut) ---------- */
:root {
    --navy: #2e3a4d;
    --navy-deep: #263142;
    --navy-ring: rgba(255, 255, 255, .07);

    --bg: #ffffff;
    --bg-soft: #f4f6fa;
    --surface: #ffffff;
    --border: #e3e8f0;
    --text: #263142;
    --muted: #5d6879;
    --accent: #4b5b74;
    --accent-soft: #e7edf7;
    --chip-dark: #5b6577;
    --primary: #2e3a4d;
    --primary-hover: #1f2836;
    --on-primary: #ffffff;
    --success: #1f7a4d;
    --success-soft: #e3f4ea;
    --danger: #b3261e;
    --danger-soft: #fbe9e7;
    --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 8px 24px rgba(20, 30, 50, .06);

    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 72px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --navy: #1a2230;
        --navy-deep: #141b26;
        --bg: #11161f;
        --bg-soft: #161c27;
        --surface: #1b2230;
        --border: #2a3444;
        --text: #e6ebf3;
        --muted: #a3aec0;
        --accent: #b9c7dd;
        --accent-soft: #243046;
        --chip-dark: #3d4a60;
        --primary: #dbe4f2;
        --primary-hover: #ffffff;
        --on-primary: #172030;
        --success: #7fd3a6;
        --success-soft: #16352a;
        --danger: #f2a39b;
        --danger-soft: #3a1d1b;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --navy: #1a2230;
    --navy-deep: #141b26;
    --bg: #11161f;
    --bg-soft: #161c27;
    --surface: #1b2230;
    --border: #2a3444;
    --text: #e6ebf3;
    --muted: #a3aec0;
    --accent: #b9c7dd;
    --accent-soft: #243046;
    --chip-dark: #3d4a60;
    --primary: #dbe4f2;
    --primary-hover: #ffffff;
    --on-primary: #172030;
    --success: #7fd3a6;
    --success-soft: #16352a;
    --danger: #f2a39b;
    --danger-soft: #3a1d1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid #7d93b8; outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px; font-size: .925rem; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--light { background: #ffffff; color: #263142; }
.btn--light:hover { background: #e7edf7; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #ffffff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text); cursor: pointer;
    transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--accent-soft); }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(20, 30, 50, .05); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.05rem; }
.brand__status { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
    display: block; padding: 8px 12px; border-radius: 999px;
    text-decoration: none; font-weight: 500; color: var(--muted);
    transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--accent-soft); }

.site-header__tools { display: flex; gap: 8px; }
.nav-toggle { display: none; }

/* Icônes d'état des boutons */
.icon--sun, .icon--close { display: none; }
[data-theme="dark"] .icon--sun { display: block; }
[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon--sun { display: block; }
    :root:not([data-theme="light"]) .icon--moon { display: none; }
}
.nav-open .icon--close { display: block; }
.nav-open .icon--menu { display: none; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-grid; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px 16px 24px;
        background: var(--bg); border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 30px rgba(20, 30, 50, .1);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
    .nav__list { flex-direction: column; }
    .nav__link { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--navy); color: #ffffff;
    padding: clamp(56px, 9vw, 112px) 0;
}
.hero__decor::before, .hero__decor::after {
    content: ""; position: absolute; border-radius: 50%; background: var(--navy-ring);
}
.hero__decor::before { width: 520px; height: 520px; top: -220px; right: -120px; }
.hero__decor::after { width: 340px; height: 340px; bottom: -160px; right: 18%; }

.hero__inner {
    position: relative;
    display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.hero__title span { color: #c3cee0; }
.hero__lead { margin-top: 20px; max-width: 34rem; font-size: 1.1rem; color: #d3dbe8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::after {
    content: ""; display: block; width: 48px; height: 3px; margin-top: 10px;
    border-radius: 3px; background: currentColor; opacity: .7;
}
.eyebrow--light { color: #b8c4d8; }

/* Maquette navigateur */
.hero__visual { position: relative; padding: 24px 8px 40px; }
.mock-browser {
    background: #ffffff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
    transform: rotate(-1.5deg);
}
.mock-browser__bar {
    display: flex; align-items: center; gap: 6px; padding: 12px 14px;
    background: #eef2f8; border-bottom: 1px solid #dde4ee;
}
.mock-browser__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #c8d1df; }
.mock-browser__url {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
    padding: 4px 12px; border-radius: 999px; background: #ffffff;
    font-size: .8rem; font-weight: 600; color: #3a4659;
}
.mock-browser__url .icon { width: 13px; height: 13px; color: #1f7a4d; }
.mock-browser__body { padding: 22px; display: grid; gap: 10px; }
.sk { border-radius: 6px; background: #e7edf7; }
.sk--title { height: 22px; width: 62%; background: #2e3a4d; }
.sk--line { height: 10px; width: 92%; }
.sk--short { width: 70%; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.sk--card { height: 74px; background: #f1f4f9; border: 1px solid #e3e8f0; }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    background: #ffffff; color: #263142; font-size: .85rem; font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    animation: float 6s ease-in-out infinite;
}
.float-chip .icon { width: 16px; height: 16px; color: #4b5b74; }
.float-chip--mail { left: -24px; bottom: 6px; background: #5b6577; color: #ffffff; }
.float-chip--mail .icon { color: #ffffff; }
.float-chip--phone { right: -12px; top: 0; animation-delay: -2s; }
.float-chip--https { right: 8px; bottom: -14px; animation-delay: -4s; }

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

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
    .float-chip { font-size: .75rem; padding: 8px 12px; }
    .float-chip--mail { left: 0; }
    .float-chip--phone { display: none; }
    .float-chip--https { right: 0; top: 0; bottom: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section__lead { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }

/* Prestations */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card__icon, .step__icon, .feature__icon {
    display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.card__icon .icon, .step__icon .icon, .feature__icon .icon { width: 22px; height: 22px; }
.card__title { font-size: 1.2rem; }
.card__text { color: var(--muted); }

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

/* Démarche */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
    position: relative; padding: 28px 24px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.step__num {
    position: absolute; top: 18px; right: 22px;
    font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent-soft);
}
.step__title { margin: 18px 0 8px; font-size: 1.1rem; }
.step__text { color: var(--muted); font-size: .95rem; }

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

/* Le saviez-vous */
.know {
    padding: clamp(28px, 5vw, 48px); border-radius: calc(var(--radius) + 8px);
    background: var(--accent-soft); border: 1px solid var(--border);
}
.know__top {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
    padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.know__chips { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chip {
    display: inline-block; padding: 9px 20px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-weight: 600; font-size: .95rem; word-break: break-all;
}
.chip--dark { background: var(--chip-dark); border-color: var(--chip-dark); color: #ffffff; }
.know__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 28px 0 36px; }
.know__cols h3 { font-size: 1.05rem; margin-bottom: 8px; }
.know__cols p { color: var(--muted); }

@media (max-width: 860px) {
    .know__cols { grid-template-columns: 1fr; gap: 20px; }
    .know__chips { align-items: flex-start; }
}

/* Simulateur */
.domain-try {
    padding: clamp(20px, 4vw, 32px); border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow);
}
.domain-try__head h3 { font-size: 1.15rem; }
.domain-try__head p { margin-top: 6px; color: var(--muted); }
.domain-try__fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.domain-try__fields .input { flex: 1 1 260px; }

.ext-picker { display: flex; gap: 6px; }
.ext-picker__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ext-picker__opt span {
    display: inline-grid; place-items: center; min-width: 58px; height: 100%; min-height: 48px;
    padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.ext-picker__opt span:hover { background: var(--accent-soft); }
.ext-picker__opt input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ext-picker__opt input:focus-visible + span { outline: 3px solid #7d93b8; outline-offset: 2px; }

.domain-try__result { display: grid; gap: 10px; margin-top: 20px; }
.result-line {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius-sm); background: var(--bg-soft);
    font-size: 1.05rem; word-break: break-all;
}
.result-line .icon { color: var(--accent); }
.domain-try__note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* Démonstration */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__title { font-size: 1.05rem; margin-bottom: 4px; }
.feature__text { color: var(--muted); font-size: .95rem; }

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

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.contact__side { display: flex; flex-direction: column; gap: 20px; }

/* Avis client : calé en bas de la colonne pour s'aligner sur le formulaire */
.testimonial {
    position: relative; margin: auto 0 0;
    padding: 24px 24px 20px; border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border); background: var(--accent-soft);
}
.testimonial::before {
    content: "\201C"; position: absolute; top: 4px; right: 18px;
    font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--accent); opacity: .25;
}
.testimonial__text { margin: 0; padding-right: 40px; font-style: italic; }
.testimonial__text p + p { margin-top: 4px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial__author img {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--surface);
}
.testimonial__author a { font-weight: 700; color: var(--text); text-decoration: none; }
.testimonial__author a:hover { text-decoration: underline; }
.contact__info {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 40px); border-radius: calc(var(--radius) + 4px);
    background: var(--navy); color: #d3dbe8;
}
.contact__info::after {
    content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px;
    border-radius: 50%; background: var(--navy-ring);
}
.contact__title { color: #ffffff; font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 14px; }
.contact__list { display: grid; gap: 16px; margin-top: 28px; position: relative; z-index: 1; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list a { color: #ffffff; font-weight: 600; text-decoration: none; word-break: break-all; }
.contact__list a:hover { text-decoration: underline; }
.contact__icon {
    display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 12px; background: rgba(255, 255, 255, .1); color: #ffffff;
}
.contact__icon .icon { width: 18px; height: 18px; }

.form {
    display: grid; gap: 18px; align-content: start;
    padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border); background: var(--surface);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label span { color: var(--danger); }

.input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { resize: vertical; min-height: 140px; }
.input.is-invalid { border-color: var(--danger); }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.field--check label { font-weight: 400; color: var(--muted); }
.field--check .field__error { grid-column: 1 / -1; }

.field__error { font-size: .85rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }

.form__status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form__status.is-success { display: block; background: var(--success-soft); color: var(--success); }
.form__status.is-error { display: block; background: var(--danger-soft); color: var(--danger); }

.form .btn { justify-self: start; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .form__row { grid-template-columns: 1fr; }
    .form .btn { justify-self: stretch; }
}

/* ---------- Pages secondaires ---------- */
.page-hero { background: var(--navy); color: #d3dbe8; padding: clamp(48px, 8vw, 88px) 0; }
.page-hero h1 { color: #ffffff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { margin-top: 14px; }
.page-hero--full { min-height: 60vh; display: flex; align-items: center; }
.page-hero--full .btn { margin-top: 18px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 12px; }
.prose p a:not(.btn) { color: var(--text); font-weight: 600; }
.prose .btn { margin-top: 28px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #c3cee0; padding: 32px 0; font-size: .92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand strong { display: block; color: #ffffff; }
.site-footer__brand span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; font-weight: 600; text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__contact .icon { width: 16px; height: 16px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a { color: #c3cee0; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
