/* ==========================================================================
   HopCall — site vitrine
   S'appuie sur brand.css pour les couleurs et la typo.
   ========================================================================== */

html { scroll-behavior: smooth; }

body { transition: background .3s ease, color .3s ease; }

a { color: var(--ink); }
a:hover { color: var(--accent); }

.wrap {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------------------------------------------ nav -- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    height: 72px;
    display: flex;
    align-items: center;
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px;
}

.site-nav .hc-logo { font-size: 24px; }

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

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .2s ease, color .2s ease;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-burger { display: none; }

/* --------------------------------------------------------------- boutons -- */

.cta {
    display: inline-block;
    text-decoration: none;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--accent);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.cta:hover {
    color: var(--accent-ink);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -12px var(--accent);
}

.cta:active { transform: none; }

.cta.sm { font-size: 14px; padding: 12px 22px; }

.cta.ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

.cta.ghost:hover { color: var(--accent); border-color: var(--accent); box-shadow: none; }

.cta.outline {
    background: transparent;
    color: var(--accent);
}

.cta.outline:hover { background: var(--accent); color: var(--accent-ink); }

/* ----------------------------------------------------------------- héros -- */

.section { padding: 80px 24px; }
.section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero {
    padding: 96px 24px 80px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 26px; }

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
}

.hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 520px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* -------------------------------------------------- la scène « ça sonne » -- */

.stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.phone {
    width: 250px;
    height: 510px;
    flex: none;
    background: #10131C;
    border: 6px solid var(--navy);
    border-radius: 44px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.phone .notch {
    width: 90px;
    height: 22px;
    background: #000;
    border-radius: var(--r-pill);
    margin-bottom: 26px;
}

.phone .status {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9BA0AE;
}

.phone .callee { margin-top: 10px; font-size: 24px; font-weight: 700; color: #fff; }
.phone .room { margin-top: 4px; font-size: 13px; color: #9BA0AE; }

/* Le disque qui pulse : l'appel est lancé, ça sonne. */
.phone .pulse {
    margin-top: 34px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: #fff;
    position: relative;
}

.phone .pulse svg { width: 34px; height: 34px; }

.phone .pulse::before,
.phone .pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ring 2.4s var(--ease) infinite;
}

.phone .pulse::after { animation-delay: 1.2s; }

@keyframes ring {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.9); opacity: 0; }
}

.phone .keys { margin-top: auto; display: flex; gap: 40px; padding-bottom: 12px; }
.phone .keys i { width: 54px; height: 54px; border-radius: 50%; background: #232939; }
.phone .keys i.hangup { background: var(--red); }

.qr-block { display: flex; flex-direction: column; gap: 16px; align-items: center; }

.qr {
    width: 150px;
    height: 150px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.qr i {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--ink);
    border-radius: 6px;
}

.qr i:nth-child(1) { left: 18px; top: 18px; }
.qr i:nth-child(2) { right: 18px; top: 18px; }
.qr i:nth-child(3) { left: 18px; bottom: 18px; }
.qr i:nth-child(4) { right: 26px; bottom: 26px; width: 22px; height: 22px; border: 0; background: var(--accent); border-radius: 4px; }
.qr i:nth-child(5) { left: 62px; top: 62px; width: 26px; height: 26px; border: 0; background: var(--ink); border-radius: 4px; opacity: .85; }

/* Le faisceau qui balaie le QR — le geste du client, en une boucle. */
.qr::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 26px;
    border-radius: 18px;
    background: linear-gradient(180deg, transparent, var(--accent-soft) 45%, var(--accent) 50%, var(--accent-soft) 55%, transparent);
    opacity: .55;
    animation: scan 3.2s var(--ease) infinite;
}

@keyframes scan {
    0%, 12% { top: 0; opacity: 0; }
    20% { opacity: .55; }
    80% { opacity: .55; }
    88%, 100% { top: calc(100% - 26px); opacity: 0; }
}

.qr-caption { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------------- grilles -- */

.grid { display: grid; gap: 24px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }

.stack { display: flex; flex-direction: column; gap: 48px; }

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section.tint .card { background: var(--bg); }
.section:not(.tint) .card { background: var(--surface); }

.card .step { font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1; }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.card.service { padding: 26px; gap: 10px; }
.card.service .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.card.service h3 { font-size: 17px; }
.card.service p { font-size: 13.5px; line-height: 1.55; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.section-head p { margin: 0; font-size: 15px; color: var(--muted); max-width: 380px; }

/* ------------------------------------------------------------ témoignages -- */

.section.navy { background: var(--navy); }
.section.navy .section-title { color: #fff; }

.quote {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote p { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .92); }

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.quote .avatar {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .18) 4px, rgba(255, 255, 255, .06) 4px, rgba(255, 255, 255, .06) 8px);
}

.quote .who { font-size: 14px; font-weight: 700; color: #fff; }
.quote .role { font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- tarifs -- */

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

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.plan.featured { border: 2px solid var(--accent); }

.plan .badge {
    position: absolute;
    top: -13px;
    left: 36px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--r-pill);
}

.plan .tier {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .capacity { font-size: 14px; color: var(--muted); }

.plan ul {
    margin: 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
}

.plan .cta { margin-top: auto; text-align: center; padding: 13px; }

/* ------------------------------------------------------------------- faq -- */

.faq { max-width: 800px; }

.faq details {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.faq details + details { margin-top: 12px; }

.faq summary {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    flex: none;
}

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

.faq details p {
    margin: 0;
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ------------------------------------------------------------------ démo -- */

.demo {
    max-width: 760px;
    margin: 0 auto;
    background: var(--navy);
    border-radius: 24px;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.demo .hc-logo { font-size: 30px; color: #fff; }

.demo h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.demo p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .7); max-width: 460px; }
.demo .fallback { font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.demo .fallback a { color: rgba(255, 255, 255, .75); }

/* Formulaire de demande de démo (sur le panneau navy) */
.demo-form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; text-align: left; margin-top: 4px; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-field label { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.demo-field label .opt { font-weight: 400; color: rgba(255, 255, 255, .45); }
.demo-field input,
.demo-field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color .15s, background .15s;
}
.demo-field textarea { resize: vertical; min-height: 84px; }
.demo-field input::placeholder,
.demo-field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.demo-field input:focus,
.demo-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, .1);
}
.demo-err { font-size: 12.5px; color: #ffb4a2; }
.demo-form .cta { align-self: start; margin-top: 4px; }

/* Le champ honeypot ne doit jamais être vu ni focalisé par un humain. */
.demo-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.demo-ok {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(238, 95, 60, .5);
    border-radius: 14px;
    padding: 20px 24px;
    color: #fff;
}
.demo-ok strong { font-size: 16px; }
.demo-ok span { font-size: 14px; color: rgba(255, 255, 255, .7); }

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

/* ---------------------------------------------------------------- footer -- */

.site-foot {
    border-top: 1px solid var(--line);
    padding: 32px 24px;
}

.site-foot .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-foot .hc-logo { font-size: 18px; letter-spacing: -.02em; }

.site-foot .tagline {
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-foot .legal { font-size: 13px; color: var(--muted); }
.site-foot .legal a { text-decoration: none; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
    .grid.c3, .plans { grid-template-columns: 1fr; }
    .grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .nav-links a { display: none; }
    .demo { padding: 48px 28px; }
}

@media (max-width: 560px) {
    .section, .hero { padding-left: 20px; padding-right: 20px; }
    .hero { padding-top: 56px; }
    .grid.c4 { grid-template-columns: 1fr; }
    .stage { flex-direction: column; }
    .site-foot .wrap { justify-content: center; text-align: center; }
    .site-foot .tagline { order: 3; }
}
