/* apply.coach — landing
   Minimal, modern, no dependencies. */

:root {
    /* ─── Palette officielle apply.coach ─── */
    --ink:          #0B0F17;      /* Encre Nuit */
    --coral:        #F26C4F;      /* Coral Signal */
    --coral-hover:  #d85c41;      /* Coral foncé pour :hover */
    --paper:        #F4F1EA;      /* Papier — fond chaud alternatif */

    --bg:           #ffffff;
    --bg-soft:      var(--paper);     /* sections alternées teintées papier */
    --surface:      #ffffff;
    --border:       #e7e1d4;          /* border plus chaud accord avec papier */
    --text:         var(--ink);
    --text-muted:   #5a6378;
    --accent:       var(--coral);
    --accent-hover: var(--coral-hover);
    --accent-soft:  rgba(242, 108, 79, 0.10);
    --success:      #16a34a;
    --warn:         #d97706;
    --danger:       #dc2626;
    --radius:       14px;
    --radius-sm:    8px;
    --shadow:       0 10px 30px rgba(11, 15, 23, 0.08);
    --shadow-lift:  0 4px 16px rgba(11, 15, 23, 0.06);
    --tint:         rgba(11, 15, 23, 0.04);
    --tint-strong:  rgba(11, 15, 23, 0.06);
    --header-bg:    rgba(255, 255, 255, 0.85);
    --max:          1180px;
}

* { box-sizing: border-box; }

/* L'attribut [hidden] doit toujours masquer, peu importe le display: explicite ailleurs. */
[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
}

.logo-symbol {
    display: block;
    height: 30px;
    width: auto;
}

/* Wordmark "apply.coach" — apply Medium / point coral / coach Bold */
.logo-wordmark {
    font-family: "Schibsted Grotesk", sans-serif;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
}
.logo-wordmark .logo-w-1 { font-weight: 500; }
.logo-wordmark .logo-w-2 { font-weight: 700; }
.logo-wordmark .logo-dot {
    color: var(--coral);
    font-weight: 800;
    margin: 0 1px;
}

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

.main-nav a {
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
}

.main-nav a:hover { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    font-size: 13px;
    font-weight: 600;
}

.lang-switch a {
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 999px;
}

.lang-switch a.active {
    background: var(--accent-soft);
    color: var(--text);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.05s ease, background 0.15s ease, border 0.15s ease;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-hover); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* Lien "Se déconnecter" — discret, pas un bouton */
.header-logout {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}
.header-logout:hover { color: var(--text); }

/* Pastille crédits dans le header */
.header-credits {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-hover);
    background: rgba(91, 140, 255, 0.10);
    border: 1px solid rgba(91, 140, 255, 0.25);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.header-credits strong { font-weight: 800; }
.header-credits:hover { border-color: rgba(91, 140, 255, 0.5); color: var(--accent-hover); }

/* ─── Spinner réutilisable (loaders boutons, etc.) ──────────────────────── */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
.spinner-lg {
    width: 36px;
    height: 36px;
    border-width: 3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 90px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 20% 20%, rgba(91, 140, 255, 0.18), transparent 70%),
        radial-gradient(50% 40% at 80% 30%, rgba(139, 92, 246, 0.14), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}


.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 22px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero .cta-sub {
    display: block;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    border: 1px solid rgba(91, 140, 255, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section {
    padding: 90px 0;
    border-top: 1px solid var(--border);
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.section-head p {
    color: var(--text-muted);
    font-size: 17px;
    margin: 0;
}

/* ─── How it works ──────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Variante 4 étapes : auto-fit pour s'adapter (4 cols wide → 2 cols → 1 col) */
.steps-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 18px;
}

.step h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.step p {
    color: var(--text-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ─── Personas grid ─────────────────────────────────────────────────────── */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.persona-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.persona-card:hover {
    border-color: rgba(91, 140, 255, 0.5);
    transform: translateY(-2px);
}

.persona-emoji {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.persona-name {
    font-weight: 700;
    font-size: 15.5px;
    margin: 0 0 6px;
}

.persona-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.difficulty {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.difficulty-beginner     { background: rgba(74, 222, 128, 0.12); color: var(--success); }
.difficulty-intermediate { background: rgba(245, 158, 11, 0.12); color: var(--warn); }
.difficulty-advanced     { background: rgba(239, 68, 68, 0.12);  color: var(--danger); }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-muted);
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    color: var(--text-muted);
    margin: 16px 0 0;
    font-size: 15px;
}

/* ─── Bandeaux parallaxe (background-attachment: fixed) ─────────────────── */
.parallax-banner {
    position: relative;
    min-height: 380px;
    padding: 90px 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Overlay sombre (scrim) pour lisibilité texte */
.parallax-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.62) 0%, rgba(8, 10, 18, 0.78) 100%);
    z-index: 0;
}

/* Fondu vers la couleur de fond (haut + bas) pour intégrer dans la page */
.parallax-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--bg) 0%,
        transparent 14%,
        transparent 86%,
        var(--bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.parallax-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    color: #f5f7ff;
}

.parallax-banner-text {
    font-size: clamp(22px, 3.2vw, 32px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Variante CTA — plus grand, avec h2 + bouton */
.parallax-banner-cta {
    min-height: 460px;
    padding: 120px 24px;
}
.parallax-banner-cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    font-weight: 700;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* iOS/Android : background-attachment: fixed est bugué/lent → on désactive */
@media (max-width: 800px),
       (hover: none) and (pointer: coarse) {
    .parallax-banner {
        background-attachment: scroll;
        min-height: 280px;
        padding: 70px 24px;
    }
    .parallax-banner-cta {
        min-height: 360px;
        padding: 90px 24px;
    }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-split .hero-copy { align-items: center; }
    .hero-split h1, .hero-split p.lead, .hero-split .cta-sub { text-align: center; }
    .hero-split p.lead { margin-left: auto; margin-right: auto; }
    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 800px) {
    .main-nav { display: none; }
    .hero { padding: 60px 0 70px; }
    .section { padding: 70px 0; }
    .steps { grid-template-columns: 1fr; }
    .how-visual { margin: 0 auto 40px; border-radius: 18px; }
    .final-cta-photo { padding: 80px 24px; }
}

@media (max-width: 480px) {
    .header-actions .btn { padding: 10px 14px; font-size: 14px; }
    .hero p.lead { font-size: 17px; }
}

/* ─── Sélecteur de recruteur pour la repasse (report + dashboard) ─────────── */
.retake-modal {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; overflow: auto;
    background: rgba(11, 15, 23, 0.6);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
body.retake-open { overflow: hidden; }
.retake-box {
    background: var(--bg, #fff);
    border-radius: 16px;
    width: 100%; max-width: 620px;
    padding: 22px 24px 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.retake-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.retake-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.retake-close {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border, #e5e7eb); background: var(--bg-soft, #f4f1ea);
    font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.retake-close:hover { background: var(--surface, #eee); }
.retake-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.retake-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--bg, #fff);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.retake-opt:hover:not(:disabled) { border-color: var(--accent, #f26c4f); transform: translateY(-1px); }
.retake-opt:disabled { opacity: 0.5; cursor: default; }
.retake-opt-special { border-style: dashed; background: var(--bg-soft, #f4f1ea); }
.retake-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.retake-name { font-size: 14px; font-weight: 600; color: var(--text, #0b0f17); }
@media (max-width: 520px) { .retake-grid { grid-template-columns: 1fr; } }

/* ─── Cards "fonctionnalités" sur la landing (style des encarts dashboard) ──── */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.lp-feature {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-feature:hover {
    border-color: var(--coral, #F26C4F);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(11, 15, 23, 0.10);
}
.lp-feature-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-soft);
    transition: transform 0.35s ease;
}
.lp-feature:hover .lp-feature-media { transform: scale(1.04); }
.lp-feature-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 2px 8px rgba(11, 15, 23, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
}
.lp-feature-body { padding: 16px 18px 18px; }
.lp-feature-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.lp-feature-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
}
