/*
Theme Name: Doseo
Theme URI: https://doseo.fr
Author: Pascal Pasquier
Author URI: https://doseo.fr
Description: Thème officiel Doseo — application de gestion médicamenteuse
Version: 1.0.0
License: Proprietary
Text Domain: doseo
Tags: one-page, landing, medical, app
*/

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --blue:       #0058a1;
  --blue-dark:  #00327f;
  --blue-light: #e8f1fa;
  --orange:     #e04c04;
  --orange-light: #fff3ee;
  --green:      #009a2b;
  --green-light:#e6f7eb;
  --red:        #e02e10;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --gray-100:   #f0f2f5;
  --gray-300:   #d0d5dd;
  --gray-500:   #667085;
  --gray-700:   #344054;
  --gray-900:   #101828;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.14);
  --shadow-phone: 0 24px 64px rgba(0,50,127,.35);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.d-display { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.d-h1      { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.d-h2      { font-size: clamp(1.4rem, 2.5vw, 2rem);   font-weight: 700; line-height: 1.3; }
.d-h3      { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.d-body    { font-size: 1rem;     font-weight: 400; line-height: 1.7; }
.d-small   { font-size: .875rem;  font-weight: 400; line-height: 1.6; }
.d-label   { font-size: .75rem;   font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 50px 0; }
section + section { padding-top: 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}
.section-eyebrow span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header p { margin-top: 16px; color: var(--gray-500); font-size: 1.05rem; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary   { background: var(--orange); color: var(--white); box-shadow: 0 4px 20px rgba(224,76,4,.35); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(224,76,4,.45); }
.btn-secondary { background: rgba(255,255,255,.15); color: var(--white); border: 2px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,.25); }
.btn-outline   { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-large { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: #021238;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(0,50,127,.97);
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}
.nav-logo-text span { color: var(--orange); }
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}


/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--blue-dark) 0%, #0047a3 60%, #0069c2 100%);
  padding: 0 0 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(224,76,4,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-content { padding-bottom: 80px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0,154,43,.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,154,43,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(0,154,43,.1); }
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

/* Phones mockup */
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: -20px;
  position: relative;
  height: 560px;
  padding-bottom: 0;
}
.phone-mockup {
  width: 220px;
  height: 450px;
  background: var(--gray-900);
  border-radius: 36px;
  border: 8px solid #1a1a2e;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a1a2e;
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
}
.phone-statusbar { height: 44px; background: var(--orange); }
.phone-content { flex: 1; padding: 12px; }
.phone-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phone-card-line { height: 8px; background: var(--gray-300); border-radius: 4px; flex: 1; }
.phone-card-line.short { width: 60%; flex: none; }
.phone-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}

.phone-mockup.center {
  transform: translateY(-30px) scale(1.06);
  z-index: 3;
  box-shadow: 0 32px 80px rgba(0,50,127,.45);
}
.phone-mockup.left  { transform: rotate(-6deg) translateX(20px); z-index: 2; opacity: .85; }
.phone-mockup.right { transform: rotate(6deg)  translateX(-20px); z-index: 2; opacity: .85; }

.hero-wave {
  display: block;
  width: 100%;
  margin-bottom: -2px;
}

/* ─── PROBLEM ────────────────────────────────────────────── */
.problem { background: var(--off-white); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-card:nth-child(1) { border-top-color: var(--red); }
.problem-card:nth-child(2) { border-top-color: var(--orange); }
.problem-card:nth-child(3) { border-top-color: var(--blue); }
.problem-icon { font-size: 2.5rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.problem-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }

/* ─── FEATURES ───────────────────────────────────────────── */
.features { background: var(--white); padding: 96px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover { border-color: var(--blue-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.feature-card p  { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }
.feature-premium-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ─── PRIVACY ────────────────────────────────────────────── */
.privacy {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 80px 0;
}
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.privacy-content h2 { color: var(--white); margin-bottom: 20px; }
.privacy-content p  { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75; margin-bottom: 32px; }
.privacy-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}
.privacy-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.privacy-pillar {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px;
}
.privacy-pillar-icon { font-size: 1.8rem; margin-bottom: 12px; }
.privacy-pillar h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.privacy-pillar p  { color: rgba(255,255,255,.6); font-size: .82rem; line-height: 1.55; }

/* ─── PRICING ────────────────────────────────────────────── */
.pricing { background: var(--off-white); padding: 96px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 40px rgba(224,76,4,.15);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pricing-name { font-size: .85rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pricing-price { margin-bottom: 8px; }
.pricing-price .amount { font-size: 3rem; font-weight: 800; color: var(--gray-900); }
.pricing-price .period { font-size: .9rem; color: var(--gray-500); }
.pricing-desc { font-size: .875rem; color: var(--gray-500); margin-bottom: 28px; }
.pricing-features { margin-bottom: 32px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: .875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-check { color: var(--green); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.pricing-feature.muted { color: var(--gray-500); }
.pricing-feature.muted .pricing-check { color: var(--gray-300); }

/* ─── DOWNLOAD ───────────────────────────────────────────── */
.download {
  background: var(--white);
  padding: 96px 0;
  text-align: center;
}
.download h2 { margin-bottom: 16px; }
.download p  { color: var(--gray-500); font-size: 1.05rem; max-width: 520px; margin: 0 auto 48px; }
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  border: 2px solid transparent;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-btn-icon { font-size: 2rem; }
.store-btn-text { text-align: left; }
.store-btn-text small { display: block; font-size: .7rem; font-weight: 400; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.store-btn-text strong { font-size: 1rem; }
.download-note { margin-top: 20px; font-size: .82rem; color: var(--gray-500); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--orange); }
.footer-brand-desc { font-size: .875rem; line-height: 1.65; max-width: 280px; }
.footer-col-title { font-size: .8rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { display: none; }
  .hero-content { padding-bottom: 64px; }
  .privacy-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-links { display: none; }
  .privacy-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .store-buttons { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
