/* appconcept.net — site des applications AppConcept. Clair / sombre selon le système. */
:root {
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --brand-soft: rgba(37, 99, 235, 0.1);
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6577;
  --border: #e3e8f0;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #60a5fa;
    --brand-2: #818cf8;
    --brand-soft: rgba(96, 165, 250, 0.14);
    --bg: #0b1020;
    --bg-alt: #111831;
    --surface: #141c36;
    --text: #e7ecf5;
    --muted: #9aa6bd;
    --border: #233056;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.62rem 1.1rem; border-radius: 10px; font-weight: 600;
       font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { color: #1e3a8a; background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn.is-disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none !important; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav > a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.nav-lang a { padding: 0.25rem 0.55rem; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.nav-lang a.is-active { background: var(--brand-soft); color: var(--brand); }
.nav-lang a:hover { text-decoration: none; color: var(--text); }
.menu-btn { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1rem 1.25rem 1.25rem;
         background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 0.5rem; }
  .nav-lang { align-self: flex-start; margin: 0.6rem 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Héros */
.hero { padding: 4.5rem 0 3rem; background:
  radial-gradient(60rem 30rem at 85% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(40rem 25rem at -10% 10%, rgba(79, 70, 229, 0.08), transparent 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand);
           background: var(--brand-soft); padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1rem; }
.hero-visual { position: relative; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar em { margin-left: 0.6rem; font-style: normal; font-size: 0.75rem; color: var(--muted); }
.hero-phone { position: absolute; width: 23%; right: -2%; bottom: -12%; border-radius: 18px; border: 5px solid #0f172a; box-shadow: var(--shadow); background: #0f172a; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; }
.stats div { text-align: center; font-weight: 600; font-size: 0.92rem; padding: 0.9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
@media (max-width: 900px) {
  .hero { padding-top: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-phone { width: 26%; bottom: -8%; right: 2%; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.1rem; }
.feature { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 0.9rem; }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.tabs { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 1.6rem; }
.tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; font: inherit; }
.tabs button.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.gallery[hidden] { display: none; }
.gallery figure { margin: 0; }
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.35s ease; }
.shot:hover img { transform: scale(1.04); }
.gallery figcaption { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 0.55rem; }

.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.use { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.use-emoji { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }
.use p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .uses { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 1.5rem; margin-bottom: 1.8rem; }
.plan { position: relative; padding: 2rem; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
              font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; white-space: nowrap; }
.plan-price { margin: 0.5rem 0 1.2rem; }
.plan-price strong { font-size: 2.6rem; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; flex: 1; }
.plan li, .req-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; }
.plan li svg, .req-list li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.2rem; color: #16a34a; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.req { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.req-list { list-style: none; margin: 0; padding: 1.6rem; display: grid; gap: 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 800px) { .req { grid-template-columns: 1fr; } }

.faq { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; transition: transform 0.2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

.cta { text-align: center; padding: 3.5rem 1.5rem; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #4f46e5 60%, #7c3aed); box-shadow: var(--shadow); }
.cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgba(5, 8, 20, 0.85); }
.lightbox img { border-radius: 12px; max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 0.8rem 0 0; }
.lightbox-close { position: fixed; top: 1rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Pages légales */
.legal { padding: 3.5rem 0 5rem; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal .notice { padding: 0.9rem 1.1rem; border-radius: 12px; background: var(--brand-soft); font-size: 0.92rem; }

/* Pied de page */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.8rem; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 0.45rem; }
.footer-grid p { margin: 0.8rem 0 0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Logo + nom de l'application */
.brand-group { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.brand-sep { color: var(--border); font-size: 1.4rem; font-weight: 300; }
.brand-app { font-size: 1.02rem; font-weight: 700; }
.brand-app img { border-radius: 7px; }
@media (max-width: 520px) { .brand-group:has(.brand-app) .brand-name { display: none; } }

/* Accueil du studio */
.hero-studio { padding: 5.5rem 0 4rem; }
.hero-studio h1 { max-width: 16em; margin-inline: auto; }
.hero-cta-center { justify-content: center; }

/* Catalogue des applications */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 370px)); justify-content: center; gap: 1.5rem; }
.app-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.app-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); border-bottom: 1px solid var(--border); overflow: hidden; }
.app-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.app-card:hover .app-cover img { transform: scale(1.03); }
.app-cover-empty { display: grid; place-items: center; height: 100%; font-size: 4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.app-badge { position: absolute; top: 0.8rem; right: 0.8rem; }
.app-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.app-title { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.app-title img { border-radius: 10px; flex-shrink: 0; }
.app-title h3 { margin: 0; font-size: 1.25rem; }
.app-title h3 a { color: var(--text); }
.app-cat { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.app-tagline { font-weight: 600; margin-bottom: 0.4rem; }
.app-desc { color: var(--muted); font-size: 0.94rem; }
.app-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.app-price { font-size: 0.9rem; color: var(--muted); }
.app-price strong { color: var(--text); font-size: 1.25rem; }
.app-actions { display: flex; gap: 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.tags-center { justify-content: center; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); }
.tag-soon { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.features-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.app-hero-icon { margin-inline: auto; border-radius: 40px; box-shadow: var(--shadow); }
.feature-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } .apps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
