/**
 * public.css — Styles spécifiques aux pages public_html.
 * Les styles de base (reset, navbar, hero, footer, etc.)
 * sont dans design-system.css.
 */

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

/* Bloc « réponse directe » (SEO / IA) */
.seo-answer-block {
    max-width: 960px;
    margin: 0 auto 1.25rem;
    padding: 0 5%;
    box-sizing: border-box;
}

.seo-answer-block__inner {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
}

.seo-answer-block__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

/* Résumé SEO placé en tête de #features : pas de double padding latéral (.benefits a déjà 5 %) */
.benefits .seo-answer-block--in-features {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0;
}

.seo-answer-block__text--pricing {
    max-width: 720px;
    margin: 0 auto 1.25rem;
    text-align: center;
    color: var(--text-gray);
}

.guide-hero .seo-answer-block__text--inline,
.how-page .guide-hero .seo-answer-block__text--inline,
.faq-page .guide-hero .seo-answer-block__text--inline {
    margin-top: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.guide-hero .seo-answer-block--hero {
    max-width: 720px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

.guide-hero .seo-answer-block--hero .seo-answer-block__inner {
    text-align: center;
}

.guide-hero .seo-answer-block--hero .seo-answer-block__text {
    color: var(--text-gray);
}

.pricing-hero .seo-answer-block--hero {
    max-width: 720px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

.pricing-hero .seo-answer-block--hero .seo-answer-block__inner {
    text-align: center;
}

.pricing-hero .seo-answer-block--hero .seo-answer-block__text {
    color: var(--text-gray);
}

.legal-page .seo-answer-block--legal {
    max-width: 48rem;
    margin: 1rem auto 1.5rem;
    padding: 0 1rem;
}

/* 3 Bénéfices */
.benefits { padding: 3rem 5%; }

.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-gray); font-size: 0.95rem; }

.benefits-grid {
    display: grid;
    /* Largeur minimale par carte : pas de colonnes qui tassent sous ~300px ; wrap 3 → 2 → 1 */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.preview-dashboard {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.preview-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.preview-cards-row .candidate-card {
    min-width: 0;
}

/* Aperçu produit : cartes structurées (fond blanc sur le panneau vitré) */
.preview-product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
}

.preview-product-card__media {
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
    background: #f8fafc;
}

.preview-product-card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-product-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
}

.preview-product-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    margin-bottom: 0.15rem;
}

.preview-product-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--text-white);
}

.preview-product-card__text {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* 3 cartes aperçu produit : 3e carte centrée en mise en page 2 colonnes */
@media (max-width: 991px) {
    .preview-cards-row .candidate-card:last-child:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: min(560px, 100%);
    }
}

.benefit-card {
    min-width: 0;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.benefit-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 3 cartes bénéfices : en 2 colonnes, la dernière reste large et centrée (pas coincée sur une demi-largeur) */
@media (max-width: 991px) {
    .benefits-grid .benefit-card:last-child:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: min(560px, 100%);
    }
}

/* Preview Produit */
.preview-section { padding: 3rem 5%; }

.browser-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    position: relative;
    margin-top: 2rem;
}

.browser-mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

.browser-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.browser-content {
    padding: 0;
    background: #f8fafc;
    min-height: 400px;
    position: relative;
}

.dashboard-img { width: 100%; height: auto; display: block; }

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 50%;
    min-width: 0;
}

/* Vidéo hero : cadre plus large, ratio natif — pas de rognage (éviter cover + aspect-ratio fixe) */
.hero-visual-frame {
    position: relative;
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    background: #f8fafc;
}

.hero-visual-frame video,
.hero-visual-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-demo-video-trigger {
    cursor: zoom-in;
}

.hero-demo-video-trigger:focus {
    outline: none;
}

.hero-demo-video-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Lightbox vidéo hero (index) */
.hero-video-lightbox {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.hero-video-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
}

.hero-video-lightbox__centerer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    min-width: min(100vw, 100%);
    padding: 1rem;
    box-sizing: border-box;
    cursor: zoom-out;
}

.hero-video-lightbox__panel {
    position: relative;
    width: 100%;
    max-width: min(1120px, 96vw);
    cursor: default;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #0f172a;
}

.hero-video-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.hero-video-lightbox__close:hover {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
}

.hero-video-lightbox__close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hero-video-lightbox__shell {
    line-height: 0;
    background: #000;
}

.hero-video-lightbox__video {
    width: 100%;
    height: auto;
    max-height: min(82vh, 85vw);
    display: block;
    vertical-align: top;
}

/* Modal demande de démo (accueil) */
.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(--primary);
    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(--primary);
    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;
}

.floating-badge {
    position: absolute;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    z-index: 20;
}

.badge-2 {
    top: 40%;
    right: -40px;
    animation-delay: 1.5s;
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

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

.hero-body-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-body-wrapper > .hero-text {
    flex: 1 1 50%;
    min-width: 0;
}

@media (max-width: 991px) {
    /* Texte (h1, sous-titre, CTA) au-dessus de la vidéo — ordre DOM = ordre visuel */
    .hero-body-wrapper {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .hero-text { align-items: center; }
    .hero-ctas { justify-content: center; }
    .hero-search-form { margin-bottom: 2rem !important; }
}

/* Search */
.hero-search-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    align-items: center;
}

.search-inputs {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 1;
    width: auto;
    position: relative;
}

.search-inputs::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #e2e8f0;
    display: block;
}

.input-group {
    flex: 1;
    width: auto;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.8rem 1.5rem;
    transition: all 0.2s;
}

.input-group:focus-within {
    background: #f8fafc;
    border-radius: 50px;
    box-shadow: none;
    border-color: transparent;
}

.input-group .icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.8;
}

.input-group input {
    background: transparent;
    border: none;
    color: #1f2937;
    width: 100%;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
}

.input-group input::placeholder { color: #64748b; font-weight: 400; }

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0.25rem;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-search:hover {
    opacity: 1;
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .hero-search-form {
        border-radius: 20px;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        max-width: 100%;
    }
    .search-inputs { flex-direction: column; width: 100%; }
    .search-inputs::after { display: none; }
    .input-group {
        padding: 0.8rem 0;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
    }
    .input-group:last-child { border-bottom: none; }
    .input-group:focus-within { background: transparent; }
    .btn-search { width: 100%; padding: 1rem; margin: 0; }
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    max-width: 900px;
    margin: -2rem auto 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .features-grid { grid-template-columns: 1fr; }
    .browser-mockup { transform: none; margin-top: 3rem; }
    /* .hero-body-wrapper a déjà gap ; pas de marge supplémentaire sur la vidéo */
    .hero-visual { margin-top: 0; }
}


/* ================================================================
   TARIFS
   ================================================================ */
.pricing-hero { text-align: center; }
.pricing-hero h1 {
    font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem;
    color: var(--text-white); letter-spacing: -0.02em;
}
.pricing-hero p { font-size: 1.25rem; color: var(--text-gray); line-height: 1.8; }

.pricing-page-wrap {
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 0 5%; box-sizing: border-box;
}

.pricing-hero { padding: 6rem 0 3rem; }
.pricing-hero p { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Billing Toggle */
.billing-toggle-wrap {
    display: flex; align-items: center;
    justify-content: center; margin-top: 2rem;
}

.billing-toggle {
    display: flex; align-items: center;
    background: var(--bg-alt, #1e293b);
    border: 1px solid var(--border-dark, #334155);
    border-radius: 999px; padding: 0.3rem;
    cursor: pointer; position: relative; user-select: none;
}

.billing-toggle-option {
    padding: 0.55rem 1.4rem; font-size: 0.9rem;
    font-weight: 600; color: var(--text-gray, #94a3b8);
    border-radius: 999px; transition: all 0.25s ease;
    z-index: 1; position: relative; white-space: nowrap;
}

.billing-toggle-option.active { background: var(--primary, #2563eb); color: #fff; }
.billing-toggle-option .toggle-sub {
    display: block; font-size: 0.65rem;
    font-weight: 400; opacity: 0.8; margin-top: 0.1rem;
}
.billing-toggle-option.active .toggle-sub { opacity: 1; }

.billing-save-badge {
    background: #10b981; color: #fff;
    font-size: 0.7rem; font-weight: 700;
    padding: 0.2rem 0.5rem; border-radius: 999px;
    margin-left: 0.5rem; text-transform: uppercase;
}

.price-amount { transition: opacity 0.2s; }

.pricing-section { width: 100%; padding: 0 0 6rem; box-sizing: border-box; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; width: 100%;
    margin: 0 auto; padding: 0; box-sizing: border-box;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 600;
    padding: 0.25rem 0.75rem; border-radius: 20px;
    text-transform: uppercase; white-space: nowrap;
}

.price-header { text-align: center; margin-bottom: 2rem; }
.price-header h3 {
    font-size: 1.25rem; font-weight: 700;
    margin-bottom: 0.5rem; color: var(--text-white);
}

.price-amount {
    font-size: 2.25rem; font-weight: 800;
    color: var(--text-white); line-height: 1.2;
}

.price-period { font-size: 0.9rem; color: var(--text-gray); font-weight: 400; }
.price-desc { color: var(--text-gray); font-size: 0.85rem; margin-top: 0.5rem; }

.features-list { flex: 1; list-style: none; margin: 1.5rem 0; padding: 0; }
.features-list li {
    position: relative; padding-left: 1.5rem;
    margin-bottom: 0.8rem; color: var(--text-gray); font-size: 0.9rem;
}
.features-list li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--primary); font-weight: bold;
}

.btn-price {
    display: block; text-align: center;
    padding: 0.85rem; border-radius: 8px;
    text-decoration: none; font-weight: 600;
    font-size: 0.95rem; transition: all 0.2s;
}
.btn-price.primary { background: var(--primary); color: white; }
.btn-price.primary:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-price.outline { background: transparent; border: 1px solid var(--border-dark); color: var(--text-white); }
.btn-price.outline:hover { border-color: var(--text-white); background: var(--bg-alt); }

/* Comparison Table */
.comparison-section {
    padding: 0 5% 6rem; max-width: 1200px;
    margin: 0 auto; overflow-x: auto;
}

.feature-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 800px; }
.feature-table th, .feature-table td { padding: 1rem; border-bottom: 1px solid var(--border-dark); }
.feature-table th { font-weight: 700; color: var(--text-white); width: 18%; text-align: center; }
.feature-table th:first-child { width: 28%; color: var(--text-gray); text-align: left; }
.feature-table td { color: var(--text-gray); font-size: 0.95rem; text-align: center; }
.feature-table td:first-child { text-align: left; }

.check-icon { color: var(--primary); font-weight: bold; }
.x-icon { color: #cbd5e1; }

@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-page-wrap { padding: 0 1rem; }
}


/* ================================================================
   GUIDE CANDIDAT
   ================================================================ */
.guide-hero {
    text-align: center; padding: 8rem 5% 4rem;
    max-width: 900px; margin: 0 auto;
}
.guide-hero h1 {
    font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem;
    color: var(--text-white); letter-spacing: -0.02em;
}
.guide-hero p {
    font-size: 1.25rem; color: var(--text-gray);
    line-height: 1.8; max-width: 700px; margin: 0 auto;
}

.tips-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 2rem; max-width: 1000px;
    margin: 0 auto 5rem; padding: 0 5%;
}

.tip-card {
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2rem; display: flex;
    align-items: flex-start; gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.tip-icon {
    width: 50px; height: 50px;
    background: var(--bg-alt); border-radius: 12px;
    display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem;
    flex-shrink: 0; border: 1px solid var(--border-dark);
}

.tip-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-white); }
.tip-content p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

.checklist-section {
    background: var(--primary); color: white;
    padding: 5rem 5%; margin-bottom: 5rem;
}

.checklist-wrapper { max-width: 800px; margin: 0 auto; }

.checklist-title {
    font-size: 2rem; font-weight: 800;
    margin-bottom: 2rem; text-align: center;
}

.checklist-items { display: grid; gap: 1rem; }

.check-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem; border-radius: 12px;
    display: flex; align-items: center;
    gap: 1rem; font-weight: 500;
}

.check-item input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: white; cursor: pointer;
}

/* ================================================================
   COMMENT ÇA MARCHE (how)
   ================================================================ */
.how-page .guide-hero {
    padding: 6rem 5% 3rem;
}
.how-page .guide-hero h1 {
    font-size: 2.75rem;
}
.how-page .guide-hero p {
    font-size: 1.15rem;
    max-width: 640px;
}

/* Scénario magasin / retail — encadré simple sous le hero */
.how-retail-scenario {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 5%;
}
.how-retail-scenario__inner {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    background: var(--surface-muted, #f8fafc);
}
.how-retail-scenario__inner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #0f172a);
}
.how-retail-scenario__inner > p {
    margin: 0 0 1rem;
    color: var(--text-muted, #475569);
    line-height: 1.55;
}
.how-retail-scenario__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}
.how-retail-scenario__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    font-weight: 600;
    color: var(--text, #0f172a);
    line-height: 1.4;
}
.how-retail-scenario__steps li::before {
    counter-increment: retail-step;
    content: counter(retail-step);
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--primary, #2563eb);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.how-retail-scenario__steps {
    counter-reset: retail-step;
}
@media (min-width: 640px) {
    .how-retail-scenario__steps {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .how-retail-scenario {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    .how-retail-scenario__inner {
        padding: 1.25rem 1.25rem;
    }
}

.how-page .tips-grid {
    max-width: 960px;
    margin: 0 auto 4rem;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-page .how-content {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

/* Étapes 1–3 : texte à gauche, vidéo à droite (même fichier FR en EN pour l’instant) */
.how-page .tip-card--with-video {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 1.5rem;
    align-items: center;
}

.how-page .tip-card-main {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    min-width: 0;
}

/* Même cadre / ombre / fond que le hero (#hero-demo-video) — pas de barre de contrôle, lecture en boucle */
.how-page .how-step-media {
    min-width: 0;
}

.how-page .how-step-media .how-step-video-trigger {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: 0;
    cursor: pointer;
    border-radius: 12px;
}
.how-page .how-step-media .how-step-video-trigger:focus {
    outline: none;
}
.how-page .how-step-media .how-step-video-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.how-page .how-step-media .hero-visual-frame {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Numéro d’étape en cercle bleu */
.how-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
}
.how-page .tip-card:not(.tip-card--with-video) {
    align-items: center;
}
.how-page .tip-card:hover .how-step-num {
    background: var(--primary-hover);
}

@media (max-width: 768px) {
    .how-page .guide-hero { padding: 4rem 1rem 2.5rem; }
    .how-page .guide-hero h1 { font-size: 2.2rem; }
    .how-page .how-content { padding: 0 1rem 3rem; }
    .how-page .tips-grid { padding: 0; }
    .how-page .tip-card--with-video {
        grid-template-columns: 1fr;
    }
    .how-page .how-step-media {
        order: -1;
    }
    .how-page .how-step-media .how-step-video-trigger {
        margin-left: auto;
        margin-right: auto;
        max-width: 420px;
    }
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-page .guide-hero {
    padding: 6rem 5% 3rem;
}
.faq-page .guide-hero p {
    font-size: 1.15rem;
    max-width: 640px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}
.faq-list__heading {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text, #0f172a);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover {
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.06);
    border-left-color: var(--primary-hover);
}

.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.faq-item h3::before {
    content: "Q";
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.faq-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 2.25rem;
}

@media (max-width: 768px) {
    .faq-page .guide-hero { padding: 4rem 1rem 2.5rem; }
    .faq-list { padding: 0 1rem 3rem; gap: 1rem; }
    .faq-item { padding: 1.25rem 1.25rem; }
    .faq-item p { padding-left: 0; }
}

.cta-section { text-align: center; padding: 0 5% 6rem; }

.cta-box {
    background: var(--bg-alt);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 3rem; max-width: 700px; margin: 0 auto;
}
.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}
.cta-box p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}
.cta-box .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .tips-grid { grid-template-columns: 1fr; }
    .guide-hero h1 { font-size: 2.2rem; }
    .cta-section { padding: 0 1rem 4rem; box-sizing: border-box; }
    .cta-box {
        padding: 1.5rem 1.25rem; margin: 0 auto;
        max-width: min(100%, calc(100% - 2rem));
        width: 100%; box-sizing: border-box;
    }
    .cta-box h2 { font-size: 1.5rem !important; margin-bottom: 0.75rem !important; }
    .cta-box p { margin-bottom: 1.5rem !important; font-size: 0.95rem; }
    .cta-box .btn-primary {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100%; max-width: 100%; box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .cta-section { padding: 0 1rem 3rem; }
    .cta-box { padding: 1.25rem 1rem; }
    .cta-box h2 { font-size: 1.35rem !important; }
    .cta-box p { font-size: 0.9rem; }
}


/* ================================================================
   EMPLOIS
   ================================================================ */

/* Search emplois (page spécifique) */
.search-page-header { padding: 6rem 5% 2rem; text-align: center; }
.search-page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }

.search-section { padding: 0 5% 4rem; }

/* Emplois search wrapper override */
.search-bar {
    display: flex; align-items: center;
    gap: 0.5rem; flex-wrap: wrap;
}

.search-bar .input-wrap {
    flex: 1; min-width: 140px;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.search-bar .input-wrap input,
.search-bar .input-wrap select {
    border: none; background: transparent;
    color: var(--text-white); font-size: 0.9rem;
    outline: none; width: 100%;
}

.search-bar .input-wrap select option { background: #1E293B; color: #fff; }

.btn-search-hero {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: var(--text-white); border: none;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn-search-hero:hover { opacity: 0.95; }

.quick-filters { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

.pill {
    padding: 0.45rem 1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    background: transparent; color: var(--text-white);
    border: 1px solid var(--glass-border);
    cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.pill:hover { background: var(--glass); }
.pill .plus { color: var(--primary); font-weight: 700; }

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 3rem auto 0;
}

.job-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 1.5rem;
    transition: transform 0.2s;
    display: flex; flex-direction: column; gap: 0.8rem;
}
.job-card:hover { transform: translateY(-3px); border-color: var(--primary); }

.job-header { display: flex; justify-content: space-between; align-items: start; }
.job-title { font-weight: 700; font-size: 1.1rem; color: var(--text-white); }
.job-company { color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.job-details { display: flex; gap: 0.8rem; font-size: 0.85rem; color: var(--text-gray); flex-wrap: wrap; }
.job-tag { background: rgba(255, 255, 255, 0.05); padding: 2px 8px; border-radius: 6px; }

.btn-apply {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    text-align: center; padding: 0.6rem;
    border-radius: 10px; color: var(--text-white);
    text-decoration: none; font-weight: 600;
    transition: background 0.2s;
}
.btn-apply:hover { background: var(--primary); color: #000; }

/* Emplois-specific login button */
.btn-login {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: var(--text-white);
    padding: 0.65rem 1.5rem; border-radius: 12px;
    text-decoration: none; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}
.btn-login:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    opacity: 0.95;
}

.btn-theme-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 1.2rem;
}
.btn-theme-toggle:hover { background: var(--glass-border); transform: rotate(15deg); }

@media (max-width: 991px) {
    .search-bar { flex-direction: column; }
    .search-bar .input-wrap { width: 100%; }
}


/* ================================================================
   PAGES LÉGALES (conditions + confidentialité)
   ================================================================ */
.legal-page {
    max-width: 800px; margin: 0 auto;
    padding: 6rem 5% 4rem;
}
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; color: var(--text-white); }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text-white); }
.legal-page p, .legal-page li { color: var(--text-gray); line-height: 1.7; margin-bottom: 1rem; }
.legal-page ul { margin-left: 1.5rem; padding-left: 0; }
.legal-page a { color: var(--primary); }
.legal-page a:hover { text-decoration: underline; }
.legal-back { display: inline-block; margin-bottom: 2rem; color: var(--text-gray); text-decoration: none; }
.legal-back:hover { color: var(--primary); }

@media (max-width: 991px) {
    .legal-page {
        padding: 5rem 1.25rem 3rem;
    }

    .pricing-hero h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .pricing-hero {
        padding: 5rem 0 2rem;
    }

    .guide-hero {
        padding: 6rem 1.25rem 3rem;
    }

    .guide-hero h1 {
        font-size: clamp(1.85rem, 5vw, 2.75rem);
    }
}

/* Page merci (/forfaits/merci) */
body.merci-thanks-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
}

.merci-thanks-main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 5% 3rem;
    box-sizing: border-box;
}

.merci-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
    max-width: 540px;
    width: 100%;
    text-align: center;
    animation: merci-fade-up 0.5s ease;
    box-sizing: border-box;
}

@keyframes merci-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.merci-icon {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: 1.25rem;
    display: block;
    animation: merci-pop-in 0.5s 0.2s both cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes merci-pop-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.merci-card h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 1rem;
}

.merci-card p {
    color: var(--text-gray);
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.merci-card .highlight {
    color: var(--primary);
    font-weight: 700;
}

.merci-steps {
    margin: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.merci-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.merci-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.merci-step-text {
    font-size: 0.9rem;
    color: var(--text-white);
    line-height: 1.5;
}

.merci-card .btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}

.merci-card .btn-primary:hover {
    opacity: 0.88;
}

.merci-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-gray);
}

.merci-note a {
    color: var(--primary);
}


/* ================================================================
   PLAN MODAL (tarifs.php)
   ================================================================ */
.plan-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000; align-items: center;
    justify-content: center; padding: 1rem;
}
.plan-modal-overlay.active { display: flex; }
.plan-modal {
    background: white; border-radius: var(--radius-lg);
    max-width: 380px; width: 100%; padding: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}
.plan-modal h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.75rem; text-align: center; }
.plan-modal .billing-choice { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.plan-modal .billing-option {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 0.5rem; border: 1px solid var(--border-dark);
    border-radius: 8px; cursor: pointer; font-size: 0.85rem;
    color: var(--text-gray); transition: all 0.2s;
}
.plan-modal .billing-option:hover { border-color: var(--primary); color: var(--primary); }
.plan-modal .billing-option input { display: none; }
.plan-modal .billing-option:has(input:checked) { border-color: var(--primary); background: rgba(37, 99, 235, 0.08); color: var(--primary); font-weight: 600; }
.plan-modal .form-group { margin-bottom: 0.6rem; }
.plan-modal .form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-white); margin-bottom: 0.15rem; }
.plan-modal .form-group input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border-dark); border-radius: 8px; font-size: 0.9rem; font-family: inherit; }
.plan-modal .form-group input:focus { outline: none; border-color: var(--primary); }
/* Boutons d’action : fond blanc, texte foncé (lisibles sur carte claire ou sombre) */
.plan-modal .btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.25rem;
    font-family: inherit;
    box-shadow: none;
}
.plan-modal .btn-submit:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    opacity: 1;
}
.plan-modal .btn-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: none; background: transparent; color: var(--text-gray); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0; }
.plan-modal .btn-close:hover { color: var(--text-white); }

/* Bloc Turnstile : widget + message/retry (états gérés en JS) */
.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; }

/* ================================================================
   MODALE VIDÉO — étapes Comment ça marche (comment-ca-marche.php)
   ================================================================ */
.how-step-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}
.how-step-modal-overlay[hidden] {
    display: none !important;
}
.how-step-modal {
    position: relative;
    width: 100%;
    max-width: min(920px, 96vw);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--surface-dark, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    overflow: auto;
}
.how-step-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-gray, #94a3b8);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.how-step-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.how-step-modal-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 0;
    width: 100%;
}
.how-step-modal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.how-step-modal-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.how-step-modal-nav:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.how-step-modal-nav:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.how-step-modal-nav:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}
.how-step-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 2.5rem 0 0;
    padding-right: 0.25rem;
    line-height: 1.3;
}
.how-step-modal-video-shell {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}
.how-step-modal-video {
    display: block;
    width: 100%;
    max-height: min(65vh, 560px);
    height: auto;
    vertical-align: middle;
}
.how-step-modal .how-step-modal-restart {
    align-self: flex-start;
    margin-top: 0.25rem;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}
.how-step-modal .how-step-modal-restart:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

@media (max-width: 600px) {
    .how-step-modal-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .how-step-modal-nav--prev {
        order: 2;
    }
    .how-step-modal-main {
        order: 1;
        flex: 1 1 100%;
    }
    .how-step-modal-nav--next {
        order: 3;
    }
    .how-step-modal-title {
        margin-right: 0;
        text-align: center;
    }
}

/* ================================================================
   FOOTER — grille 4 colonnes
   ================================================================ */
@media (min-width: 992px) {
    footer .footer-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* Liens pages sectorielles (accueil, tarifs) */
.secteurs-links__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.secteurs-links__list a { display: inline-block; padding: .6rem 1.1rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; }
