/* ==========================================
   STYLES COMMUNS À TOUTES LES PAGES
   (palette, logo, menu mobile, pied de page, révélations, pages Tarifs et Contact)
   ========================================== */
:root {
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-luxe: cubic-bezier(0.19, 1, 0.22, 1);
    /* Couleurs de l'application */
    --a-bg: #f3f3e8; --a-surface: #fbfbf6; --a-line: #dcdec9;
    --a-text: #1d2420; --a-muted: #5f675f; --a-accent: #b85042;
    --a-accent-soft: rgba(184, 80, 66, 0.12);
    --a-green: #4e7560; --a-green-soft: rgba(167, 190, 174, 0.35);
    --a-amber: #8a6418; --a-amber-soft: rgba(196, 156, 72, 0.18);
    --rule: rgba(29, 36, 32, 0.12);
}
html.dark {
    --a-bg: #0f1210; --a-surface: #191e1a; --a-line: #2a312c;
    --a-text: #eef0e6; --a-muted: #a2a99f; --a-accent: #d06a5b;
    --a-accent-soft: rgba(208, 106, 91, 0.16);
    --a-green: #a7beae; --a-green-soft: rgba(167, 190, 174, 0.16);
    --a-amber: #d9b062; --a-amber-soft: rgba(217, 176, 98, 0.14);
    --rule: rgba(255, 255, 255, 0.1);
}
::selection { background: rgba(184, 80, 66, 0.28); }
:focus-visible { outline: 2px solid #b85042; outline-offset: 3px; border-radius: 6px; }
html.dark .text-brand-accent { color: #d06a5b; }

/* Logo */
.gh-mark {
    display: inline-grid; place-items: center; flex: none;
    width: 30px; height: 30px; border-radius: 9px;
    background: #b85042; color: #fff;
    font-size: 12.5px; font-weight: 800; letter-spacing: -0.04em;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* ==========================================
   MENU MOBILE
   ========================================== */
.mobile-menu {
    display: grid; overflow: hidden;
    max-height: 0; padding: 0 24px;
    transition: max-height 0.5s var(--ease-luxe), padding 0.5s var(--ease-luxe);
}
.mobile-menu.is-open { max-height: 360px; padding-bottom: 18px; }
.mobile-menu a {
    padding: 13px 0; font-size: 1.15rem; font-weight: 600;
    border-top: 1px solid var(--rule);
}
.mobile-menu a[aria-current="page"] { color: #b85042; }
html.dark .mobile-menu a[aria-current="page"] { color: #d06a5b; }
nav:has(.mobile-menu.is-open) { background: #e7e8d1; transition: background 0.3s var(--ease-soft); }
html.dark nav:has(.mobile-menu.is-open) { background: #111412; }
@media (min-width: 768px) { .mobile-menu { display: none; } }

/* ==========================================
   RÉVÉLATIONS (titres qui glissent hors d'un masque, blocs qui montent)
   ========================================== */
.reveal-lines .rl { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.reveal-lines .rl > span { display: inline-block; }
.js .reveal-lines .rl > span { transform: translateY(112%); transition: transform 1.4s var(--ease-luxe); }
.js .reveal-lines .rl:nth-child(2) > span { transition-delay: 0.12s; }
.js .reveal-lines .rl:nth-child(3) > span { transition-delay: 0.24s; }
.js .reveal-lines.is-in .rl > span { transform: none; }
.js .reveal-fade { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease-soft) 0.45s, transform 1.5s var(--ease-luxe) 0.45s; }
.js .reveal-fade.is-in { opacity: 1; transform: none; }
.js .reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease-soft), transform 1.4s var(--ease-luxe); }
.js .reveal-up.is-in { opacity: 1; transform: none; }

/* ==========================================
   EN-TÊTE DES PAGES SECONDAIRES
   ========================================== */
.pg-hero { max-width: 72rem; margin: 0 auto; padding: 170px 24px 70px; }
.pg-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.pg-hero p { margin-top: 26px; max-width: 40rem; font-size: 1.2rem; line-height: 1.6; }
.pg-section { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.pg-section + .pg-section { margin-top: 120px; }
.pg-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; }
.pg-lead { margin-top: 12px; font-size: 1.1rem; line-height: 1.6; max-width: 36rem; }
.check { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #b85042; }
html.dark .check { color: #d06a5b; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 28px; border-radius: 999px; font-weight: 600;
    transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: #b85042; color: #fff; }
.btn-primary:hover { background: #9c4135; }
.btn-ghost { border: 1px solid var(--rule); }
.btn-ghost:hover { background: rgba(29, 36, 32, 0.05); }
html.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* ==========================================
   TARIFS
   ========================================== */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 36px; border-radius: 28px;
    background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text);
    box-shadow: 0 40px 80px -56px rgba(29, 36, 32, 0.55);
}
.plan.is-featured { border-color: #b85042; box-shadow: 0 0 0 1px #b85042 inset, 0 40px 80px -50px rgba(184, 80, 66, 0.45); }
.plan-tag {
    position: absolute; top: 22px; right: 22px;
    padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: var(--a-accent-soft); color: var(--a-accent);
}
.plan h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.plan-desc { margin-top: 8px; color: var(--a-muted); line-height: 1.55; min-height: 3.1em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; }
.plan-price b { font-size: 3.4rem; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--a-muted); font-weight: 500; }
.plan ul { display: grid; gap: 12px; margin: 28px 0 32px; padding-top: 26px; border-top: 1px solid var(--a-line); }
.plan li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }
.plan .btn { margin-top: auto; }

.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; margin-top: 36px; }
.included li { display: flex; gap: 11px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--rule); line-height: 1.45; }

.starts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.start {
    padding: 28px; border-radius: 24px;
    background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text);
}
.start-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; font-size: 12px; font-weight: 800; }
.start-ico svg { width: 22px; height: 22px; }
.start h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.start p { margin-top: 8px; color: var(--a-muted); line-height: 1.55; }

/* Questions fréquentes */
.faq { margin-top: 30px; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 24px 0; cursor: pointer; list-style: none;
    font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
    position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%;
    border: 1px solid var(--rule); transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}
.faq summary i::before, .faq summary i::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px;
    background: currentColor; border-radius: 1px; transition: transform 0.5s var(--ease-luxe);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: #b85042; border-color: #b85042; color: #fff; }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq-body { overflow: hidden; height: 0; transition: height 0.55s var(--ease-luxe); }
.faq-body p { padding: 0 60px 26px 0; font-size: 1.04rem; line-height: 1.65; max-width: 46rem; }
.no-js .faq-body, html:not(.js) .faq-body { height: auto; }

/* Bandeau final */
.cta-band { max-width: 72rem; margin: 140px auto 0; padding: 0 24px; }
.cta-box { border-radius: 32px; padding: 64px 48px; text-align: center; background: #1d2420; color: #eef0e6; }
html.dark .cta-box { background: #1a201c; border: 1px solid rgba(255, 255, 255, 0.08); }
.cta-box h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.cta-box p { margin: 16px auto 0; max-width: 34rem; font-size: 1.1rem; line-height: 1.6; color: #c3c7b6; }
.cta-box .btn-ghost { border-color: rgba(255, 255, 255, 0.22); }
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ==========================================
   CONTACT
   ========================================== */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.form-card {
    padding: 36px; border-radius: 28px;
    background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text);
    box-shadow: 0 40px 80px -56px rgba(29, 36, 32, 0.55);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field label small, .field legend small { font-weight: 500; color: var(--a-muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 14px;
    background: var(--a-bg); border: 1px solid var(--a-line); color: var(--a-text);
    font: inherit; font-size: 15px;
    transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--a-muted); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #b85042; box-shadow: 0 0 0 3px rgba(184, 80, 66, 0.18); }
.field.has-error input, .field.has-error textarea { border-color: #b85042; }
.field-error { font-size: 13px; color: var(--a-accent); min-height: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
    border: 1px solid var(--a-line); background: var(--a-bg);
    transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + span { color: var(--a-accent); }
.choice label:has(input:checked) { background: var(--a-accent-soft); border-color: transparent; font-weight: 600; }
.choice label:has(input:focus-visible) { outline: 2px solid #b85042; outline-offset: 2px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--a-muted); }

.form-success { text-align: center; padding: 30px 10px; }
.form-success .tick {
    width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--a-green-soft); color: var(--a-green);
}
.form-success .tick svg { width: 30px; height: 30px; }
.form-success h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.form-success p { margin-top: 10px; color: var(--a-muted); line-height: 1.6; }

.next-steps { display: grid; gap: 0; margin-top: 22px; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.next-steps b { font-weight: 600; }
.next-num {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    font-size: 13px; font-weight: 700; border: 1.5px solid var(--rule);
}
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.contact-line svg { width: 20px; height: 20px; color: #b85042; flex: none; }

/* ==========================================
   PIED DE PAGE (toujours foncé, en clair comme en sombre)
   ========================================== */
.site-footer {
    position: relative; overflow: hidden;
    margin-top: 140px; background: #0d100e; color: #eef0e6;
}
.site-footer::before {
    content: ''; position: absolute; left: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(184, 80, 66, 0.18), transparent);
    pointer-events: none;
}
.sf-inner {
    position: relative; max-width: 72rem; margin: 0 auto; padding: 72px 24px 56px;
    display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 48px;
}
.sf-big { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.sf-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 22px; }
.sf-text { margin-top: 16px; color: #a2a99f; line-height: 1.55; max-width: 18rem; }
.sf-list { display: grid; gap: 14px; }
.sf-list a { color: #dfe2d6; transition: color 0.3s var(--ease-soft); }
.sf-list a:hover { color: #e48a7c; }
.sf-line { display: flex; align-items: center; gap: 10px; }
.sf-line svg { width: 18px; height: 18px; color: #a7beae; flex: none; }

.sf-form {
    position: relative; margin-top: 26px; max-width: 19rem;
    display: flex; align-items: center; padding: 5px 5px 5px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
    transition: border-color 0.3s var(--ease-soft);
}
.sf-form:focus-within { border-color: #b85042; }
.sf-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #eef0e6; font: inherit; font-size: 15px; }
.sf-form input::placeholder { color: #8f968c; }
.sf-form button {
    width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center;
    background: #eef0e6; color: #1d2420;
    transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.sf-form button:hover { background: #b85042; color: #fff; }
.sf-form button:active { transform: scale(0.94); }
.sf-form button svg { width: 18px; height: 18px; }
.sf-form.has-error { border-color: #d06a5b; }
.sf-form-msg { margin-top: 10px; min-height: 1.3em; font-size: 14px; color: #a7beae; }
.sf-form-msg.is-error { color: #e48a7c; }

.sf-social { display: flex; gap: 12px; }
.sf-social a {
    width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14); color: #eef0e6;
    transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-luxe);
}
.sf-social a:hover { background: #b85042; border-color: #b85042; transform: translateY(-2px); }
.sf-social svg { width: 20px; height: 20px; }

.sf-theme { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: #c3c7b6; }
.sf-theme svg { width: 20px; height: 20px; }
.sf-switch {
    position: relative; width: 56px; height: 32px; border-radius: 999px; background: #eef0e6;
    transition: background 0.4s var(--ease-soft);
}
.sf-switch span {
    position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #1d2420;
    transition: transform 0.45s var(--ease-luxe), background 0.4s var(--ease-soft);
}
.sf-switch[aria-checked="true"] { background: #b85042; }
.sf-switch[aria-checked="true"] span { transform: translateX(24px); background: #fff; }

.sf-bottom {
    position: relative; max-width: 72rem; margin: 0 auto; padding: 26px 24px 34px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1); color: #8f968c; font-size: 15px;
}
.sf-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.sf-legal a { color: #dfe2d6; transition: color 0.3s var(--ease-soft); }
.sf-legal a:hover { color: #e48a7c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1023px) {
    .sf-inner { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
}
@media (max-width: 599px) {
    .sf-inner { grid-template-columns: 1fr; padding: 56px 16px 40px; }
    .sf-bottom { padding: 22px 16px 30px; }
    .sf-big { font-size: 2.2rem; }
}

/* ==========================================
   PAGES LÉGALES
   ========================================== */
.legal-meta { margin-top: 18px !important; font-size: 0.95rem !important; color: #575e56; }
html.dark .legal-meta { color: #8f968c; }
.legal-meta span { margin: 0 6px; }
.legal-meta a { text-decoration: underline; text-underline-offset: 3px; }
.legal-layout { max-width: 72rem; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
.legal-toc { position: sticky; top: 120px; align-self: start; }
.legal-toc-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #575e56; }
.legal-toc ol { display: grid; gap: 2px; border-left: 2px solid var(--rule); }
.legal-toc a { display: block; margin-left: -2px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; font-size: 14px; color: #575e56; transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft); }
html.dark .legal-toc a, html.dark .legal-toc-title { color: #8f968c; }
.legal-toc a.is-active { color: inherit; font-weight: 600; border-left-color: #b85042; }
.legal { max-width: 46rem; }
.legal section { scroll-margin-top: 110px; padding: 34px 0; border-top: 1px solid var(--rule); }
.legal section:first-child { border-top: 0; padding-top: 0; }
.legal h2 { display: flex; gap: 12px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 14px; }
.legal h2 span { color: #b85042; font-variant-numeric: tabular-nums; }
html.dark .legal h2 span { color: #d06a5b; }
.legal p, .legal li { font-size: 1.04rem; line-height: 1.7; }
.legal p + p, .legal ul + p, .legal p + ul, .legal div + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal li::marker { color: #b85042; }
.legal a { color: #b85042; text-decoration: underline; text-underline-offset: 3px; }
html.dark .legal a { color: #d06a5b; }
.legal b { font-weight: 600; }
.legal code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--a-bg); border: 1px solid var(--a-line); }
mark.todo { background: rgba(217, 176, 98, 0.35); color: inherit; padding: 1px 5px; border-radius: 5px; font-weight: 600; }
.legal-table-wrap { overflow-x: auto; margin: 4px 0 6px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.legal-table th { text-align: left; font-size: 13px; font-weight: 600; color: #575e56; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.legal-table td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5; }
.legal-action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 4px; }
.legal-action span { color: var(--a-green); font-weight: 500; }

/* Crédit du pied de page */
.sf-sep { margin: 0 6px; }
.sf-credit { color: #dfe2d6; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(184, 80, 66, 0.7); text-underline-offset: 3px; transition: color 0.3s var(--ease-soft); }
.sf-credit:hover { color: #e48a7c; }

@media (max-width: 899px) {
    .legal-layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
    .legal-toc { display: none; }
}

@media (max-width: 899px) {
    .pg-hero { padding: 130px 16px 50px; }
    .pg-section { padding: 0 16px; }
    .pg-section + .pg-section { margin-top: 90px; }
    .plans, .starts, .contact-grid, .form-row { grid-template-columns: 1fr; }
    .included { grid-template-columns: 1fr; gap: 0; }
    .plan, .form-card { padding: 26px; }
    .cta-band { padding: 0 16px; margin-top: 100px; }
    .cta-box { padding: 48px 24px; }
    .faq-body p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal-lines .rl > span, .js .reveal-fade, .js .reveal-up { transform: none; }
    .faq-body, .mobile-menu { transition: none; }
}

/* ==========================================
   LOGO GARAGEHUB (hexagone « G »)
   ========================================== */
.gh-logo { width: 30px; height: 30px; flex: none; color: #b85042; }
html.dark .gh-logo { color: #fff; }
.gh-app {
    display: inline-grid; place-items: center; flex: none;
    width: 30px; height: 30px; border-radius: 28%;
    background: #b85042; color: #fff;
}
.gh-app svg { width: 64%; height: 64%; }

/* Bouton Connexion du menu mobile */
.mm-login {
    margin-top: 6px; padding: 13px; border-radius: 999px;
    font-size: 1.05rem; font-weight: 600; text-align: center;
    background: #1d2420; color: #fff;
}
html.dark .mm-login { background: #fff; color: #1d2420; }

/* ==========================================
   FENÊTRE DE CONNEXION (commune à toutes les pages)
   Elle s'agrandit depuis le centre de l'écran, en écran partagé.
   ========================================== */
.login { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.login[hidden] { display: none; }
.login-backdrop {
    position: absolute; inset: 0;
    background: rgba(13, 16, 14, 0.55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.45s var(--ease-soft);
}
.login-panel {
    position: relative; width: min(940px, 100%); height: min(600px, calc(100vh - 40px));
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 28px; overflow: hidden;
    background: var(--a-surface); color: var(--a-text);
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.6);
    clip-path: inset(44% 38% round 28px); opacity: 0;
    transition: clip-path 0.8s var(--ease-luxe), opacity 0.35s var(--ease-soft);
}
.login.is-open .login-backdrop { opacity: 1; }
.login.is-open .login-panel { clip-path: inset(0 round 28px); opacity: 1; }
.login.is-closing .login-panel { transition-duration: 0.45s, 0.35s; }

/* Contenu qui apparaît juste après l'ouverture */
.login-side > *, .login-main > * { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease-soft), transform 0.9s var(--ease-luxe); }
.login.is-open .login-side > *, .login.is-open .login-main > * { opacity: 1; transform: none; }
.login.is-open .login-side > :nth-child(2), .login.is-open .login-main > :nth-child(2) { transition-delay: 0.3s; }
.login.is-open .login-side > :nth-child(1), .login.is-open .login-main > :nth-child(1) { transition-delay: 0.25s; }
.login.is-open .login-side > :nth-child(3), .login.is-open .login-main > :nth-child(3) { transition-delay: 0.38s; }
.login.is-open .login-main > :nth-child(4) { transition-delay: 0.44s; }

.login-side {
    position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
    color: #fff; background: radial-gradient(120% 90% at 0% 0%, #cb6a58, #b85042 45%, #7e342b);
}
.login-side .gh-logo { width: 42px; height: 42px; color: #fff; }
.login-side h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.login-side p { margin-top: 12px; color: rgba(255, 255, 255, 0.82); line-height: 1.55; max-width: 22rem; }
.login-stats { display: grid; gap: 10px; }
.login-stat {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.13); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 14px;
}
.login-stat b { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #b85042; font-size: 14px; }

.login-main { position: relative; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-close {
    position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; color: var(--a-muted);
    transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.login-close:hover { background: var(--a-bg); color: var(--a-text); }
.login-close svg { width: 20px; height: 20px; }
.login-main h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.login-main > p { margin-top: 6px; color: var(--a-muted); }
.login-form { margin-top: 28px; }
.login-pass { position: relative; }
.login-pass input { padding-right: 48px; }
.login-eye {
    position: absolute; right: 8px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
    display: grid; place-items: center; color: var(--a-muted);
}
.login-eye:hover { background: var(--a-line); }
.login-eye svg { width: 18px; height: 18px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 22px; font-size: 14px; }
.login-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.login-row input { width: 16px; height: 16px; accent-color: #b85042; }
.login-row a, .login-foot a { color: var(--a-accent); font-weight: 600; }
.login-msg { margin-top: 14px; min-height: 1.4em; font-size: 14px; line-height: 1.5; color: var(--a-muted); }
.login-foot { margin-top: 18px; font-size: 14px; color: var(--a-muted); }

@media (max-width: 767px) {
    .login { padding: 12px; }
    .login-panel { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 24px); overflow-y: auto; }
    .login-side { display: none; }
    .login-main { padding: 56px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-panel { clip-path: none; transition: opacity 0.25s linear; }
    .login-side > *, .login-main > * { transform: none; }
}

/* ==========================================
   BANNIÈRE COOKIES
   ========================================== */
.consent {
    position: fixed; z-index: 400; left: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px));
    padding: 20px; border-radius: 22px; background: var(--a-surface); color: var(--a-text);
    border: 1px solid var(--a-line); box-shadow: 0 30px 70px -30px rgba(13, 16, 14, 0.55);
    opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease-soft), transform 0.6s var(--ease-luxe);
}
.consent.is-in { opacity: 1; transform: none; }
.consent p { font-size: 14px; line-height: 1.55; }
.consent a { color: var(--a-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.consent-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.consent .btn { padding: 10px 18px; font-size: 14px; }
.sf-cookie-btn { color: #dfe2d6; transition: color 0.3s var(--ease-soft); }
.sf-cookie-btn:hover { color: #e48a7c; }
@media (prefers-reduced-motion: reduce) { .consent { transform: none; } }

/* Piège anti-robot : invisible pour les visiteurs, rempli par les robots */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Page 404 */
.nf { min-height: 70vh; }
.nf-code { font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: #b85042; opacity: 0.16; margin: 0 0 -0.12em !important; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Fenêtre de connexion : vues secondaires (mot de passe oublié, nouveau mot de passe) */
.login-main { overflow: hidden; }
.login-link { color: var(--a-accent); font-weight: 600; font-size: 14px; }
.login-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-alt {
    position: absolute; inset: 0; z-index: 2; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
    background: var(--a-surface); opacity: 0; transform: translateX(16px);
    transition: opacity 0.3s var(--ease-soft), transform 0.5s var(--ease-luxe);
}
.login-alt.is-in { opacity: 1; transform: none; }
.login-alt h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; }
.login-alt > p { margin-top: 6px; color: var(--a-muted); line-height: 1.5; }
.login-alt .login-link { margin-top: 18px; align-self: flex-start; }
@media (max-width: 767px) { .login-alt { padding: 56px 24px 28px; } }
.login-alt[hidden] { display: none; }
.login.is-open .login-main > .login-alt:not(.is-in) { opacity: 0; transform: translateX(16px); }
