/* =============================================================
   DavApps — Charte graphique 2026 · THÈME SOMBRE
   Ink #0B1320 · Green #21C48D · Teal #12B1C6 · Blue #2563EB · Light #F3F6F9
   Titres : Funnel Display · Texte : Montserrat
   ============================================================= */

:root {
  --ink:        #0b1320;
  --bg:         #0b1320;   /* fond principal */
  --surface:    #0f1a2b;   /* sections surélevées */
  --surface-2:  #16233a;   /* cartes / champs */
  --border:     rgba(120,160,210, .18);
  --border-str: rgba(120,160,210, .32);

  --silver:     #f3f6f9;
  --blue:       #2563eb;
  --blue-dk:    #1d4ed8;
  --blue-lt:    #6f9bff;
  --green:      #21c48d;
  --green-dk:   #1a9e73;
  --green-lt:   #5fe0b2;
  --teal:       #12b1c6;

  --text:       #c3ccdb;   /* texte courant */
  --text-muted: #8695ac;   /* texte secondaire */
  --heading:    #ffffff;

  --font-title: 'Funnel Display', 'Montserrat', system-ui, sans-serif;
  --font-body:  'Montserrat', system-ui, -apple-system, sans-serif;

  --brandmark: url('../img/brandmark.svg');

  --wrap: 1180px;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow:   0 0 0 1px rgba(33,196,141,.5), 0 20px 50px -20px rgba(33,196,141,.35);
  --transition: .25s ease;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-lt); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--heading); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }
strong { color: #e6e8f5; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

/* ---------- Utilitaires ---------- */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.center { text-align: center; }
.blue { color: var(--green); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 1rem;
  display: inline-block;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  line-height: 1;
}
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-dk); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(33,196,141,.55); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--border-str); }
.btn-ghost:hover { background: rgba(33,196,141,.14); color: #fff; border-color: var(--green); }
.btn-light { background: var(--ink); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: #060c16; color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo img { height: 32px; width: auto; }
.logo .word { font-family: var(--font-title); font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; }
.logo .word .dav { color: #fff; }
.logo .word .apps { color: #fff; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(33,196,141,.16); }
.nav a.is-active { color: var(--green); }
.nav-cta { margin-left: .5rem; }

/* Burger mobile */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: var(--transition); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(33,196,141,.26), transparent 60%),
    var(--bg);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; max-width: 58vw;
  background: var(--brandmark) no-repeat center / contain;
  opacity: .14; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .blue { color: var(--green); }
.hero p { color: var(--text); font-size: 1.2rem; max-width: 56ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.6rem; color: var(--text-muted); font-size: .92rem; font-weight: 500; }
.hero-tags span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-tags span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Variante hero interne (plus compacte) */
.hero.hero-page { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.hero.hero-page::after { opacity: .1; }

/* =============================================================
   CARTES / SERVICES
   ============================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2rem 1.9rem; border-radius: var(--radius);
  transition: var(--transition);
}
.card:hover { border-color: var(--green); box-shadow: var(--glow); transform: translateY(-4px); }
.card .card-num { font-family: var(--font-title); font-weight: 700; color: var(--green); font-size: 1.05rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .98rem; margin: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 600; font-size: .92rem; color: var(--green); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: rgba(33,196,141,.16); color: var(--green);
}
.card-icon svg { width: 26px; height: 26px; }

/* =============================================================
   SECTIONS ALTERNÉES
   ============================================================= */
.section-ink { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-silver { background: var(--surface); }

/* Bloc split image/texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* Liste à puces "check" */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .9rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center / 12px;
}

/* =============================================================
   VITRINE APPLICATIONS (produits)
   ============================================================= */
.product {
  display: flex; flex-direction: column;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; transition: var(--transition);
}
.product:hover { border-color: var(--green); box-shadow: var(--glow); transform: translateY(-4px); }
.product .app-mark {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: #fff;
  margin-bottom: 1.3rem;
}
.product .app-mark.davapps { background: linear-gradient(150deg, #21c48d, #12b1c6 48%, #2563eb); }
.product .app-mark.aquasy  { background: linear-gradient(150deg, #2fd0c0, #12b1c6 55%, #0ea5e9); }
.product .app-mark.rh      { background: linear-gradient(150deg, #4f7cf5, #2563eb 55%, #1d3fb8); }
.product h3 { margin-bottom: .1rem; }
.product .card-link { margin-top: auto; }
.product .app-tag { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: .7rem; }
.product p { color: var(--text-muted); font-size: .98rem; margin-bottom: 1rem; }
.product .prod-features { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.product .prod-features li { margin: 0; }
.product .prod-features span {
  display: inline-block; border: 1px solid var(--border-str); border-radius: 999px;
  padding: .3rem .85rem; font-size: .82rem; color: var(--text);
}
.product .card-link { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }

/* =============================================================
   PAGE PRODUIT — visuels d'application
   ============================================================= */
.aqua { color: #38bdf8; }
.dbleu { color: #6f9bff; }
.app-hero-mark {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.8rem; color: #fff;
  margin-bottom: 1.4rem;
  background: linear-gradient(150deg, #38bdf8, #0ea5e9 60%, #0284c7);
}
.app-hero-mark.aquasy  { background: linear-gradient(150deg, #38bdf8, #0ea5e9 60%, #0284c7); }
.app-hero-mark.davapps { background: linear-gradient(150deg, #21c48d, #12b1c6 46%, #2563eb); }
.shot { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--surface-2); }
.shot img { display: block; width: 100%; height: auto; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: .6rem .85rem; background: #0e1a2e; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #33415c; display: block; }
.browser-bar .url { margin-left: .7rem; font-size: .78rem; color: var(--text-muted); letter-spacing: .02em; }
.feature-ico { color: #38bdf8; background: rgba(14,165,233,.16); }
.feature-ico.db { color: #6f9bff; background: rgba(37,99,235,.16); }

/* =============================================================
   VITRINE APPLICATIONS (produits) — suite
   ============================================================= */
/* =============================================================
   STATS
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-title); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--green); line-height: 1; }
.stat .lbl { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }

/* Étapes numérotées (process) */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative; padding: 1.1rem 1.3rem 1.1rem 3.6rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-weight: 500; color: var(--text);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; background: var(--green); color: var(--ink);
  font-family: var(--font-title); font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq { display: grid; gap: .8rem; max-width: 840px; margin-inline: auto; }
.faq details { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.4rem; }
.faq details[open] { border-color: var(--border-str); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; font-weight: 600; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-title); font-size: 1.5rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--text-muted); margin: 0; padding: 0 0 1.3rem; max-width: none; }

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.info-item .ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: rgba(33,196,141,.22); color: var(--green); display: grid; place-items: center; }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item .t { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.info-item .v { color: #fff; font-weight: 500; }
.info-item .v a { color: #fff; }
.info-item .v a:hover { color: var(--green); }
.info-card {
  background: linear-gradient(160deg, rgba(33,196,141,.16), var(--surface-2) 60%);
  border: 1px solid var(--border-str); color: #fff; padding: 2.2rem; border-radius: var(--radius);
}
.info-card h3 { color: #fff; }

/* Contenu légal */
.legal h2 { margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text); }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band { background: var(--silver); color: var(--ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: var(--ink); margin: 0; max-width: 24ch; }
.cta-band p { color: #2b3040; margin: .5rem 0 0; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--bg); color: var(--text); padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-grid a { color: var(--text-muted); font-size: .95rem; display: block; margin-bottom: .6rem; }
.footer-grid a:hover { color: #fff; }
.footer-about .logo .word .apps { color: #fff; }
.footer-about p { color: var(--text-muted); font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer-contact-line { display: block; margin-bottom: .6rem; font-size: .95rem; color: var(--text-muted); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .88rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-grid a.social {
  display: inline-flex; width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.08); align-items: center; justify-content: center;
  color: #fff; transition: var(--transition); margin-bottom: 0;
}
.footer-grid a.social:hover { background: var(--green); color: var(--ink); }
.footer-grid a.social svg { width: 18px; height: 18px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #0d1626; padding: 1rem 1.5rem 1.5rem; gap: .2rem;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform var(--transition); visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: .8rem .6rem; font-size: .98rem; }
  .nav-cta { margin: .6rem 0 0; text-align: center; }
  .burger { display: block; }
  .split, .grid-2, .grid-3, .product, .contact-grid { grid-template-columns: 1fr; }
  .product .app-mark { width: 72px; height: 72px; font-size: 2rem; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
}
