/* =====================================================================
   Oliasphere — site vitrine (statique, zéro dépendance)
   Charte : bleu #1663A5 (dégradé navy → cyan du logo), Poppins self-hosted,
   cartes arrondies + ombres douces, cohérent avec l'ERP.
   ===================================================================== */

/* ---------- Polices (self-hosted, subset latin) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }

/* ---------- Variables ---------- */
:root {
  --navy: #0E3B66;
  --bleu: #1663A5;
  --bleu-fonce: #114E84;
  --cyan: #1BA3B4;
  --grad: linear-gradient(120deg, var(--navy), var(--bleu) 55%, var(--cyan));
  --encre: #1B2733;
  --muted: #5A6B7B;
  --ligne: #E3E9F0;
  --fond: #F6F9FC;
  --bleu-pale: #EAF2FA;
  --cyan-pale: #E8F7F9;
  --blanc: #FFFFFF;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(14, 59, 102, .08);
  --shadow-md: 0 6px 24px rgba(14, 59, 102, .10);
  --shadow-lg: 0 18px 50px rgba(14, 59, 102, .16);
  --container: 1140px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--encre);
  background: var(--blanc);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; color: var(--encre); }
h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.3px; }
h3 { font-size: 18px; }
p { color: var(--muted); }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
section { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-top: 12px; font-size: 17px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--bleu); background: var(--bleu-pale);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--bleu); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 13px 26px; border-radius: 12px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn-primary { background: var(--bleu); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--bleu-fonce); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--bleu); border-color: #BBD3E8; }
.btn-ghost:hover { border-color: var(--bleu); background: var(--bleu-pale); }
.btn-blanc { background: #fff; color: var(--bleu); }
.btn-blanc:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-size: 21px; font-weight: 600; letter-spacing: -.3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--encre); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bleu); }
.nav .btn { padding: 10px 20px; font-size: 14px; }
/* Le CTA du header reste blanc (prime sur la couleur des liens de nav) */
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary[aria-current="page"] { color: #fff; }
.burger {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center;
}
.burger:hover { background: var(--bleu-pale); }
.burger svg { width: 26px; height: 26px; stroke: var(--encre); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--cyan-pale), transparent 60%),
    radial-gradient(800px 420px at 0% 110%, var(--bleu-pale), transparent 55%),
    var(--fond);
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 20px 0 30px; font-size: 18px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- Bandeau confiance ---------- */
.trust { padding: 26px 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust-item svg { width: 26px; height: 26px; stroke: var(--bleu); flex: none; }
.trust-item span { font-size: 13.5px; font-weight: 500; color: var(--encre); line-height: 1.35; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icone {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bleu-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icone svg { width: 24px; height: 24px; stroke: var(--bleu); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }

/* ---------- Modules (chips accueil + cartes fonctionnalités) ---------- */
.fond-doux { background: var(--fond); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--ligne); border-radius: 999px; padding: 9px 18px;
  font-size: 14px; font-weight: 500; color: var(--encre); box-shadow: var(--shadow-sm);
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.modules-groupe { margin-bottom: 40px; }
.modules-groupe h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--bleu); margin-bottom: 18px; }
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.module-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.module-card p { font-size: 13.5px; }

/* ---------- Mockup navigateur (dessiné en CSS, aucune capture) ---------- */
.mockup { border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--ligne); overflow: hidden; font-size: 10px; }
.mock-barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ligne); background: var(--fond); }
.mock-barre i { width: 10px; height: 10px; border-radius: 50%; background: #D7E1EA; }
.mock-url { margin-left: 10px; background: #fff; border: 1px solid var(--ligne); border-radius: 999px; padding: 3px 14px; color: var(--muted); font-size: 10.5px; }
.mock-corps { display: grid; grid-template-columns: 118px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid var(--ligne); padding: 12px 10px; background: #fff; }
.mock-side .mock-logo { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 10.5px; color: var(--bleu); margin-bottom: 12px; }
.mock-side .mock-logo img { width: 16px; height: 16px; }
.mock-item { padding: 6px 9px; border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 500; margin-bottom: 3px; }
.mock-item.actif { background: var(--bleu); color: #fff; }
.mock-main { background: var(--fond); padding: 0; }
.mock-bandeau { background: var(--grad); color: #fff; padding: 9px 14px; font-weight: 600; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.mock-bandeau i { background: rgba(255,255,255,.25); border-radius: 6px; padding: 2px 8px; font-style: normal; font-size: 9px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 4px; }
.mock-kpi { background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow-sm); }
.mock-kpi b { display: block; font-size: 13px; color: var(--encre); }
.mock-kpi span { font-size: 8.5px; color: var(--muted); }
.mock-kpi .up { color: #0E9F6E; font-weight: 600; }
.mock-table { margin: 10px 14px 14px; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mock-ligne { display: grid; grid-template-columns: 2fr 1.2fr 1fr .8fr; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--ligne); align-items: center; color: var(--muted); font-size: 9.5px; }
.mock-ligne:last-child { border-bottom: 0; }
.mock-ligne.entete { background: var(--fond); font-weight: 600; color: var(--encre); }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 8.5px; font-weight: 600; text-align: center; }
.badge-bleu { background: var(--bleu-pale); color: var(--bleu); }
.badge-vert { background: #E3F5EC; color: #0E9F6E; }
.badge-orange { background: #FDEEDD; color: #C2620A; }

/* ---------- Mockup téléphone ---------- */
.terrain-grid { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; }
.phone {
  width: 250px; margin: 0 auto; background: #fff; border-radius: 34px;
  border: 1px solid var(--ligne); box-shadow: var(--shadow-lg); padding: 12px; font-size: 10px;
}
.phone-ecran { border-radius: 24px; overflow: hidden; border: 1px solid var(--ligne); }
.phone-bandeau { background: var(--grad); color: #fff; padding: 12px 14px; font-weight: 600; font-size: 11px; }
.phone-bandeau small { display: block; font-weight: 400; opacity: .85; font-size: 9px; }
.phone-corps { background: var(--fond); padding: 10px; }
.phone-carte { background: #fff; border: 1px solid var(--ligne); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.phone-carte b { font-size: 10.5px; display: block; color: var(--encre); }
.phone-carte span { color: var(--muted); font-size: 9px; }
.phone-cta { background: var(--bleu); color: #fff; text-align: center; border-radius: 10px; padding: 8px; font-weight: 600; font-size: 10.5px; }
.liste-checks { margin-top: 22px; }
.liste-checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); font-size: 15px; }
.liste-checks li svg { width: 20px; height: 20px; stroke: var(--cyan); flex: none; margin-top: 3px; }
.liste-checks li b { color: var(--encre); font-weight: 600; }

/* ---------- Bande CTA ---------- */
.cta-bande { background: var(--grad); border-radius: var(--r-lg); padding: 54px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-md); }
.cta-bande h2 { color: #fff; margin-bottom: 12px; }
.cta-bande p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Tarifs ---------- */
.tarifs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tarif-card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tarif-card.vedette { border: 2px solid var(--bleu); box-shadow: var(--shadow-md); position: relative; }
.tarif-vedette-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--bleu); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 16px; border-radius: 999px; white-space: nowrap; }
.tarif-card h3 { font-size: 20px; }
.tarif-card .tarif-desc { font-size: 14px; margin: 6px 0 18px; }
.prix { font-size: 26px; font-weight: 700; color: var(--bleu); margin-bottom: 4px; }
.prix small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tarif-card ul { margin: 18px 0 26px; flex: 1; }
.tarif-card ul li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 10px; align-items: flex-start; }
.tarif-card ul li svg { width: 18px; height: 18px; stroke: var(--cyan); flex: none; margin-top: 3px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 22px; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--bleu); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 18px; font-size: 14.5px; }

/* ---------- Approche (alternance) ---------- */
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.alt-visuel { background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 34px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.alt h2 { margin-bottom: 14px; }
.alt p { margin-bottom: 12px; font-size: 15.5px; }
.schema-instances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.schema-instance {
  background: #fff; border: 1px solid var(--ligne); border-radius: 12px;
  padding: 14px 12px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
}
.schema-instance b { display: block; font-size: 12px; color: var(--encre); }
.schema-instance span { font-size: 10.5px; color: var(--muted); display: block; }
.schema-instance .base { margin-top: 10px; background: var(--bleu-pale); color: var(--bleu); border-radius: 8px; font-size: 10px; font-weight: 600; padding: 5px 4px; }

/* ---------- Schéma hébergement (page approche) ---------- */
.schema-hebergement { width: 100%; max-width: 420px; margin: 0 auto; }
.schema-noeud {
  background: #fff; border: 2px solid var(--cyan); border-radius: 12px;
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.schema-noeud svg { width: 26px; height: 26px; margin: 0 auto 8px; display: block; }
.schema-noeud b { display: block; font-size: 14px; color: var(--encre); line-height: 1.3; }
.schema-noeud span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.schema-serveur { border-color: var(--bleu); background: var(--bleu-pale); }
.schema-liens { display: grid; grid-template-columns: 1fr 1fr; height: 24px; }
.schema-liens i { border-left: 2px dashed #94A9BC; justify-self: center; }
.schema-enfants { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.form { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow-md); }
.form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.champ input, .champ select, .champ textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--encre);
  border: 1px solid #C9D6E2; border-radius: 10px; padding: 11px 14px; background: #fff;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(22, 99, 165, .15);
}
.champ textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.contact-aside .card { margin-bottom: 18px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: 32px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; }
.legal p, .legal li { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.a-completer { background: #FFF6E5; border-radius: 6px; padding: 0 6px; color: #9A6B0F; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--encre); color: #B7C4D0; padding: 56px 0 30px; }
.footer a { color: #D5DEE7; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span { font-size: 19px; font-weight: 600; color: #fff; }
.footer p { font-size: 13.5px; color: #8FA0AF; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer li { margin-bottom: 9px; }
.footer-bas { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #8FA0AF; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 56px 0; }
  .hero-grid, .terrain-grid, .contact-grid, .alt { grid-template-columns: 1fr; gap: 40px; }
  .cards, .modules-grid, .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .alt.inverse .alt-visuel { order: -1; }
}
@media (max-width: 640px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ligne); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; padding: 18px 22px; gap: 4px;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 6px; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .nav .btn { margin-top: 10px; justify-content: center; }
  .burger { display: flex; }
  .cards, .modules-grid, .tarifs-grid, .form-ligne, .schema-instances { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-item { justify-content: flex-start; }
  .hero { padding: 56px 0 48px; }
  .cta-bande { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
