/* Page d'accueil vitrine (maquette approuvée le 15 oct. 2026) */
:root{--p:#2563EB;--pd:#1d4ed8;--a:#8B5CF6;--t:#0F172A;--m:#475569;--bg:#F8FAFC;--bd:#E2E8F0}
*{box-sizing:border-box}body{margin:0;font-family:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;color:var(--t);line-height:1.55}
a{color:var(--p)}.w{max-width:1180px;margin:0 auto;padding:0 20px}
.btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;font-weight:700;text-decoration:none;font-size:1rem}
.bp{background:var(--p);color:#fff}.bp:hover{background:var(--pd)}.bs{border:2px solid var(--p);color:var(--p);background:#fff}
a:focus-visible,select:focus-visible{outline:3px solid #0F172A;outline-offset:2px}
header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--bd);z-index:9}
.hd{display:flex;align-items:center;gap:20px;min-height:68px;flex-wrap:wrap}
.logo img{display:block;height:44px;width:auto}.logo{min-height:44px;align-items:center}.logo{display:flex;font-weight:900;font-size:1.5rem;text-decoration:none;color:var(--t)}.logo b{color:var(--p)}
nav ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}nav a{white-space:nowrap;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:var(--t);text-decoration:none;font-weight:500}
.sp{flex:1}select{max-width:150px;min-height:44px;border:1px solid #ccc;border-radius:10px;padding:0 10px;font-size:.95rem;background:#fff}
.hero{background:var(--bg);padding:64px 0}.hg{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center}
h1{font-size:clamp(2rem,4.5vw,3.3rem);line-height:1.1;margin:0 0 16px}.ht{font-size:clamp(2rem,4.5vw,3.3rem);line-height:1.1;margin:0 0 16px;font-weight:800;text-align:left}h1{font-weight:800}.ht em{color:var(--p);font-style:normal}h1 em{color:var(--p);font-style:normal}
.sub{font-size:1.2rem;color:var(--m);margin:0 0 26px;max-width:34em}.ctas{display:flex;gap:12px;flex-wrap:wrap}
.note{margin-top:18px;color:var(--m);font-size:.95rem;display:flex;flex-wrap:wrap;gap:6px 18px;padding:0;list-style:none}.note li::before{content:"✓ " / "";color:#047857;font-weight:800}
.vis{margin:0}.vis img{width:100%;height:auto;display:block;border-radius:20px;box-shadow:0 20px 50px rgba(15,23,42,.18)}
section{padding:72px 0}h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 10px;text-align:center}.lead{text-align:center;color:var(--m);margin:0 auto 40px;max-width:40em}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:24px}.card{border:1px solid var(--bd);border-radius:18px;padding:28px;background:#fff}
.ic{width:56px;height:56px;border-radius:14px;background:#DBEAFE;display:grid;place-items:center;margin-bottom:14px}
.card h3{margin:0 0 8px;font-size:1.3rem}.card p{color:var(--m);margin:0 0 12px}.tag{display:inline-block;background:#fef3c7;color:#78350f;border-radius:99px;padding:4px 12px;font-size:.85rem;font-weight:600}
.how{background:var(--bg)}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;padding:0;margin:0;counter-reset:s}
.steps li{background:#fff;border-radius:18px;padding:28px;counter-increment:s}.steps li::before{content:counter(s);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--p);color:#fff;font-weight:800;margin-bottom:12px}
.steps h3{margin:0 0 6px}.steps p{margin:0;color:var(--m)}
.band{background:linear-gradient(135deg,#1e3a5f,#2563eb);color:#fff;text-align:center}.band h2{color:#fff}.band p{color:#E2E8F0;margin:0 0 24px}.band .bp{background:#fff;color:var(--pd)}
footer{padding:32px 0;font-size:.95rem;color:var(--m)}.fd{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}footer a{display:inline-flex;min-height:44px;min-width:44px;justify-content:center;align-items:center;color:var(--m)}
@media(min-width:901px){.hd{flex-wrap:nowrap}}@media(max-width:900px){.hg,.cards,.steps{grid-template-columns:1fr}nav{order:3;width:100%}nav ul{display:grid;grid-template-columns:1fr 1fr;gap:0}nav a{padding:0 6px;font-size:.92rem}.hero{padding:40px 0}.hd .btn{padding:0 14px}}
@media(max-width:480px){.hd{gap:8px}.hd form{gap:4px}.hd select{max-width:118px;padding:0 2px;font-size:.85rem}.hd .btn{display:none}.ctas .btn{width:100%}}
.hero{position:relative}.slide{animation:fd .7s ease}.slide[hidden]{display:none}@keyframes fd{from{opacity:0}to{opacity:1}}
.ctl{display:flex;gap:6px;align-items:center;justify-content:center;margin-top:28px}
.ctl button{width:44px;height:44px;border:0;background:transparent;cursor:pointer;display:grid;place-items:center;border-radius:50%;color:#0F172A;font-size:14px}
.dot::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid #2563EB;background:#fff}.dot[aria-current=true]::before{background:#2563EB}
.ctl button:focus-visible{outline:3px solid #0F172A}
@media(prefers-reduced-motion:reduce){.slide{animation:none}}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hd form{margin:0;display:flex;align-items:center;gap:6px}.hd .ok{min-width:44px;min-height:44px;border:1px solid #ccc;border-radius:10px;background:#fff;font:inherit;font-weight:700;cursor:pointer}.lang{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-weight:700;text-decoration:none}
.vis picture{display:block}


/* Fenêtre « Réserver une démo » (reprise de public.css) */
.demo-request-dialog {
    padding: 0;
    border: none;
    background: transparent;
    max-width: calc(100vw - 1.5rem);
    width: min(100%, 32rem);
    margin: auto;
    box-sizing: border-box;
    overflow: visible;
}

/* Safari / WebKit : sans display explicite à l’ouverture, la boîte du <dialog>
   peut ne pas s’étendre au contenu et n’afficher qu’une bande (titre + croix). */
.demo-request-dialog[open] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100vw - 1.5rem), 32rem);
}

.demo-request-dialog::backdrop {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}

.demo-request-dialog__panel {
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Éviter min(..., 100%) : le % se base sur le dialog dont Safari fixe parfois la hauteur à 0 */
    max-height: 90vh;
    max-height: min(90vh, 88dvh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.demo-request-dialog__title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 2.25rem 0.75rem 0;
    line-height: 1.25;
    color: #0f172a;
}

.demo-request-dialog__intro {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
}

.demo-request-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.demo-request-dialog__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.demo-request-dialog__close:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: 2px;
}

.demo-request-dialog__alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.demo-request-dialog__alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.demo-request-dialog__alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.demo-request-field {
    margin-bottom: 1rem;
}

.demo-request-field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
    color: #334155;
}

.demo-request-field input[type="email"],
.demo-request-field input[type="datetime-local"],
.demo-request-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
}

.demo-request-field textarea {
    resize: vertical;
    min-height: 5rem;
}

.demo-request-field input:focus-visible,
.demo-request-field textarea:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: 1px;
    border-color: transparent;
}

.demo-request-turnstile {
    margin: 0.5rem 0 1rem;
}

.demo-request-actions {
    margin-top: 0.25rem;
}

.demo-request-actions .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.plan-modal-turnstile {
    margin: 0.5rem 0 0.75rem;
    min-height: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.plan-modal-turnstile[hidden] { display: none !important; }
.plan-modal-turnstile-widget {
    min-height: 65px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-modal-turnstile-widget:empty { min-height: 65px; }
.plan-modal-turnstile-feedback {
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
}
.plan-modal-turnstile-status {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray, #64748b);
}
.plan-modal-turnstile-retry {
    width: auto;
    min-width: 8rem;
    margin-top: 0.25rem;
}
/* État prêt : seul le widget est pertinent, feedback masqué */
.plan-modal-turnstile.is-ready .plan-modal-turnstile-feedback { display: none; }

.btn-price { cursor: pointer; font-family: inherit; }


.demo-request-actions .btn-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:12px;background:var(--p);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.demo-request-dialog__close{min-width:44px;min-height:44px}
.plan-modal-turnstile-retry{min-height:44px}
button.btn{border:0;font:inherit;font-weight:700;cursor:pointer}button.bs{border:2px solid var(--p)}
.band .bs{background:transparent;color:#fff;border-color:#fff}.band .ctas{justify-content:center}
.demo-vid{margin:40px auto 0;max-width:560px}.demo-vid h3{text-align:center;margin:0 0 16px;font-size:1.3rem}
.demo-vid video{display:block;width:100%;height:auto;border-radius:18px;background:#0F172A;box-shadow:0 20px 50px rgba(15,23,42,.18)}
.fd nav{width:100%}.fl{display:flex;flex-wrap:wrap;gap:0 24px;list-style:none;margin:0;padding:0}
