/*
 * assets/css/homepage.css
 * MediContrat — Styles de la page d'accueil publique + modal "Créer un contrat"
 */

/* ── Variables ── */
:root {
  --bg: #f7f9fc;
  --surface: #fff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --accent: #0ea5e9;
  --accent-dark: #0369a1;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15,23,42,.07);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ── NAV ── */
.hp-nav { background: linear-gradient(135deg,#0c4a6e 0%,#0369a1 55%,#0891b2 100%); padding: 0 20px; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 20px rgba(8,145,178,.25); }
.hp-nav-inner { max-width: var(--container); margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #0c4a6e; }
.hp-nav-logo img { height: 56px; width: auto; }
.hp-nav-links { display: flex; align-items: center; gap: 24px; }
.hp-nav-link { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); transition: color .15s; }
.hp-nav-link:hover { color: #fff; }
.hp-nav-ctas { display: flex; gap: 8px; align-items: center; }
@media (max-width: 768px) { .hp-nav-links { display: none; } }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; border: 2px solid transparent; transition: .15s; font-family: inherit; white-space: nowrap; }
.btn:hover { filter: brightness(.95); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 9px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: var(--surface); color: var(--accent-dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); background: #f0f9ff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-white { background: #fff; color: var(--text); border-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.btn-white:hover { background: #f8fafc; }

/* ── HERO ── */
.hero { padding: 80px 0 60px; background: linear-gradient(175deg,#ecfdf5 0%,#f0f9ff 40%,var(--bg) 100%); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; top: -120px; right: -180px; width: 500px; height: 500px; background: radial-gradient(circle,rgba(34,197,94,.08) 0%,transparent 70%); border-radius: 50%; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #ecfdf5; color: #166534; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 20px; border: 1px solid #bbf7d0; }
.hero h1 { font-size: clamp(30px,4.5vw,48px); font-weight: 800; line-height: 1.15; color: #0c4a6e; margin-bottom: 18px; }
.hero h1 strong { color: var(--primary); }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
.hero-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.hero-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.hero-check-ico { width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* ── MOCKUP ── */
.mockup-stack { display: flex; flex-direction: column; gap: 16px; }
.mockup-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.mockup-header { background: linear-gradient(180deg,#f4f7ff,#eef3ff); padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.mockup-dots { display: flex; gap: 4px; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-dot.r { background: #ef4444; } .mockup-dot.y { background: #f59e0b; } .mockup-dot.g { background: #22c55e; }
.mockup-title { font-size: 11px; font-weight: 700; color: #0c4a6e; margin-left: 6px; }
.mockup-body { padding: 12px 14px; }
.mockup-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 10px; }
.mockup-stat { background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; text-align: center; }
.mockup-stat-val { font-size: 16px; font-weight: 800; color: #0369a1; }
.mockup-stat-label { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 1px; }
.mockup-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.mockup-table th { text-align: left; color: var(--muted); font-size: 8px; text-transform: uppercase; padding: 5px 6px; border-bottom: 1px solid var(--border); }
.mockup-table td { padding: 5px 6px; border-bottom: 1px solid #f1f5f9; }
.mbadge { display: inline-flex; padding: 2px 6px; border-radius: 4px; font-size: 8px; font-weight: 700; }
.mbadge.gr { background: #dcfce7; color: #166534; } .mbadge.am { background: #fef3c7; color: #92400e; }
.mbadge.bl { background: #e0f2fe; color: #075985; } .mbadge.mu { background: #f1f5f9; color: #94a3b8; }
.mbtn { display: inline-flex; padding: 2px 6px; border-radius: 3px; font-size: 8px; font-weight: 700; border: 1px solid; }
.mbtn.sign { background: #22c55e; color: #fff; border-color: #22c55e; }
.mbtn.pdf { background: #fff; color: #0369a1; border-color: #bae6fd; }
.mbtn.proof { background: #fff; color: #6366f1; border-color: #c7d2fe; }
.mockup-label-tag { display: inline-flex; padding: 4px 12px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; margin-top: 8px; }
.mockup-label-tag.nurse { background: linear-gradient(90deg,#0ea5e9,#22c55e); }
.mockup-label-tag.fact { background: linear-gradient(90deg,#8b5cf6,#0ea5e9); }
@media (max-width: 960px) { .mockup-stats { grid-template-columns: repeat(2,1fr); } }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; color: #0c4a6e; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--muted); line-height: 1.6; }
.badge-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: #1e40af; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 16px; border: 1px solid #bfdbfe; }

/* ── PERSONAS ── */
.persona-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .persona-grid { grid-template-columns: 1fr 1fr; } }
.persona-card { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 36px 32px; transition: .2s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.persona-card:hover { border-color: var(--primary); box-shadow: 0 16px 48px rgba(34,197,94,.1); transform: translateY(-3px); }
.persona-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.persona-card.nurse::before { background: linear-gradient(90deg,#0ea5e9,#22c55e); }
.persona-card.facturier::before { background: linear-gradient(90deg,#8b5cf6,#0ea5e9); }
.persona-ico { font-size: 42px; margin-bottom: 16px; line-height: 1; }
.persona-card h3 { font-size: 24px; font-weight: 800; color: #0c4a6e; margin-bottom: 20px; line-height: 1.2; }
.persona-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: flex; flex-direction: column; }
.persona-card li { padding: 9px 0; font-size: 14.5px; color: #334155; display: flex; align-items: baseline; gap: 10px; line-height: 1.6; border-bottom: 1px solid #f1f5f9; }
.persona-card li:last-child { border-bottom: none; }
.persona-card li .chk { color: var(--primary); font-weight: 800; flex-shrink: 0; font-size: 14px; line-height: 1.6; }
.persona-card strong { color: #0f172a; font-weight: 700; }
.persona-card .btn { align-self: stretch; justify-content: center; text-align: center; margin-top: auto; }

/* ── FEATURES ── */
.features-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3,1fr); } }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: .15s; }
.feature-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(14,165,233,.08); }
.feature-ico { width: 48px; height: 48px; background: linear-gradient(135deg,#ecfdf5,#e0f2fe); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 800; color: #0c4a6e; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── STEPS ── */
.steps-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3,1fr); } }
.step-card { text-align: center; padding: 24px; }
.step-num { width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 16px; }
.step-card h3 { font-size: 17px; font-weight: 800; color: #0c4a6e; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── SIGNATURE BLOCK ── */
.sig-block { background: linear-gradient(135deg,#ecfdf5,#eff6ff); border: 2px solid #bbf7d0; border-radius: var(--radius); padding: 40px 36px; display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .sig-block { grid-template-columns: 1.2fr 1fr; } }
.sig-block h3 { font-size: 24px; font-weight: 800; color: #0c4a6e; margin-bottom: 12px; }
.sig-block p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.sig-features { display: flex; flex-direction: column; gap: 8px; }
.sig-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.sig-feature-ico { width: 20px; height: 20px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.sig-mockup { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.sig-mockup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sig-mockup-ico { width: 36px; height: 36px; background: #dcfce7; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sig-mockup-title { font-weight: 800; font-size: 14px; color: #0c4a6e; }
.sig-mockup-sub { font-size: 11px; color: var(--muted); }
.sig-mockup-fields { display: flex; flex-direction: column; gap: 10px; }
.sig-mockup-field { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sig-mockup-check { width: 16px; height: 16px; border: 2px solid var(--primary); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 10px; font-weight: 800; }
.sig-mockup-canvas { height: 60px; border: 2px dashed #cbd5e1; border-radius: 8px; margin: 10px 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; background: repeating-linear-gradient(0deg,transparent,transparent 19px,#e2e8f0 19px,#e2e8f0 20px); }
.sig-mockup-sig { font-size: 22px; font-style: italic; color: #0c4a6e; opacity: .6; }
.sig-mockup-btn { width: 100%; padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 800; font-size: 13px; text-align: center; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 18px 0; font-size: 16px; font-weight: 700; color: #0c4a6e; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; color: var(--primary); }
.faq-item p { padding: 0 0 18px; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg,#0c4a6e,#0369a1); padding: 80px 0; text-align: center; color: #fff; }
.cta-band h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: .85; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.hp-foot { text-align: center; padding: 28px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.hp-foot a { color: var(--accent); font-weight: 600; margin: 0 4px; }
.hp-foot a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════════
   MODAL — CRÉER UN CONTRAT (parcours guest)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
#gc-overlay { display: none; position: fixed; inset: 0; background: rgba(10,18,40,.55); backdrop-filter: blur(4px); z-index: 9000; align-items: center; justify-content: center; padding: 16px; }
#gc-overlay.open { display: flex; }

/* ── Modal box ── */
#gc-modal { background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(10,18,40,.18); width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; position: relative; animation: gcFadeIn .22s ease; }
@keyframes gcFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── Header ── */
.gc-header { padding: 28px 28px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gc-header h2 { font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.3; margin: 0; }
.gc-header p { color: #64748b; font-size: 14px; margin: 4px 0 0; }
.gc-close { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: 8px; transition: color .15s, background .15s; flex-shrink: 0; }
.gc-close:hover { color: #0f172a; background: #f1f5f9; }

/* ── Stepper ── */
.gc-stepper { display: flex; align-items: center; gap: 0; padding: 20px 28px 0; }
.gc-step-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; transition: background .2s, color .2s, border-color .2s; }
.gc-step-dot.done { background: #22c55e; color: #fff; border: 2px solid #22c55e; }
.gc-step-dot.active { background: #fff; color: #22c55e; border: 2px solid #22c55e; }
.gc-step-dot.idle { background: #fff; color: #94a3b8; border: 2px solid #e2e8f0; }
.gc-step-line { flex: 1; height: 2px; background: #e2e8f0; transition: background .2s; }
.gc-step-line.done { background: #22c55e; }

/* ── Body ── */
.gc-body { padding: 24px 28px 28px; }

/* ── Steps ── */
.gc-step { display: none; }
.gc-step.active { display: block; }

/* ── Profession cards ── */
.gc-prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.gc-prof-card { border: 2px solid #e2e8f0; border-radius: 14px; padding: 20px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; text-align: center; position: relative; }
.gc-prof-card:hover:not(.disabled) { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.gc-prof-card.selected { border-color: #22c55e; background: #f0fdf4; }
.gc-prof-card.disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.gc-prof-icon { font-size: 36px; margin-bottom: 10px; }
.gc-prof-label { font-weight: 700; font-size: 15px; color: #0f172a; }
.gc-prof-sub { font-size: 12px; color: #64748b; margin-top: 3px; }
.gc-badge-soon { display: inline-block; background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Contrat type cards ── */
.gc-type-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.gc-type-card { border: 2px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; display: flex; align-items: center; gap: 14px; }
.gc-type-card:hover { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.gc-type-card.selected { border-color: #22c55e; background: #f0fdf4; }
.gc-type-icon { font-size: 28px; flex-shrink: 0; }
.gc-type-info strong { font-size: 14px; color: #0f172a; display: block; }
.gc-type-info span { font-size: 12px; color: #64748b; }

/* ── Form ── */
.gc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gc-form-grid .gc-full { grid-column: 1 / -1; }
.gc-section-title { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .07em; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #f1f5f9; }
.gc-section-title:first-child { margin-top: 0; }
.gc-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.gc-label .req { color: #ef4444; }
.gc-input, .gc-select, .gc-textarea { width: 100%; padding: 10px 13px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #0f172a; background: #fff; transition: border-color .15s, box-shadow .15s; outline: none; font-family: inherit; }
.gc-input:focus, .gc-select:focus, .gc-textarea:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.gc-textarea { resize: vertical; min-height: 72px; }
.gc-input.err, .gc-select.err, .gc-textarea.err { border-color: #ef4444; }
.gc-tooltip { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* ── Register form ── */
.gc-reg-intro { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.gc-reg-intro strong { color: #15803d; font-size: 14px; display: block; margin-bottom: 3px; }
.gc-reg-intro span { font-size: 13px; color: #166534; }
.gc-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gc-reg-grid .gc-full { grid-column: 1 / -1; }

/* ── Alert ── */
.gc-alert { padding: 12px 15px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; display: none; }
.gc-alert.err { background: #fef2f2; border: 1.5px solid #fecaca; color: #b91c1c; }
.gc-alert.ok { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #15803d; }
.gc-alert.show { display: block; }

/* ── Modal buttons ── */
.gc-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.gc-btn { padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: background .15s, opacity .15s; }
.gc-btn-primary { background: #22c55e; color: #fff; }
.gc-btn-primary:hover:not(:disabled) { background: #16a34a; }
.gc-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.gc-btn-outline { background: #fff; color: #374151; border: 1.5px solid #e2e8f0; }
.gc-btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }
.gc-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success ── */
.gc-success { text-align: center; padding: 16px 0; }
.gc-success-icon { font-size: 56px; margin-bottom: 12px; }
.gc-success h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.gc-success p { color: #64748b; font-size: 14px; line-height: 1.6; }

/* ── Progress bar ── */
.gc-progress { height: 3px; background: #f1f5f9; overflow: hidden; }
.gc-progress-bar { height: 100%; background: linear-gradient(90deg,#22c55e,#16a34a); transition: width .3s ease; }

/* ── Responsive modal ── */
@media (max-width: 520px) {
  .gc-prof-grid { grid-template-columns: 1fr 1fr; }
  .gc-form-grid, .gc-reg-grid { grid-template-columns: 1fr; }
  .gc-form-grid .gc-full, .gc-reg-grid .gc-full { grid-column: 1; }
  .gc-body { padding: 18px 18px 22px; }
  .gc-header { padding: 20px 18px 0; }
  .gc-stepper { padding: 16px 18px 0; }
}

/* ── Bouton nav "Créer un contrat" ── */
.btn-nav-contract {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(34,197,94,.35);
  transition: box-shadow .15s, transform .15s, background .15s;
}
.btn-nav-contract:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 16px rgba(34,197,94,.45);
  transform: translateY(-1px);
  filter: none;
}
@media (max-width: 640px) { .btn-nav-contract { display: none; } }

/* ── Infobulles du modal ── */
.gc-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.gc-label-row .gc-label {
  margin-bottom: 0;
}
.gc-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1;
}
.gc-tip-btn:hover,
.gc-tip-btn:focus {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #16a34a;
  outline: none;
}
.gc-tip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  text-align: left;
  z-index: 9999;
  pointer-events: none;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.gc-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}
.gc-tip-btn:hover .gc-tip-bubble,
.gc-tip-btn:focus .gc-tip-bubble {
  display: block;
}
/* Repositionner si trop proche du bord gauche */
.gc-form-grid > div:nth-child(odd) .gc-tip-bubble {
  left: 0;
  transform: none;
}
.gc-form-grid > div:nth-child(odd) .gc-tip-bubble::after {
  left: 14px;
  transform: none;
}
