/* ============================================
   PHARMACIE DE GARDE FRANCE — stylesheet
   ============================================ */

:root {
  --green: #00A651;
  --green-deep: #007C3E;
  --green-soft: #E8F5EE;
  --green-mist: #F4FBF7;
  --offwhite: #FAFCFB;
  --ink: #0F1F17;
  --ink-soft: #4A5D53;
  --ink-mute: #8A9B91;
  --line: #E3ECE7;
  --danger: #D43F3F;
  --gold: #C9A24A;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 280ms cubic-bezier(.4, 0, .2, 1);
  --shadow-sm: 0 2px 8px rgba(15, 31, 23, .04);
  --shadow-md: 0 8px 24px rgba(15, 31, 23, .08);
  --shadow-lg: 0 20px 48px rgba(0, 166, 81, .18);
  --gradient: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green);
}

/* ==== Layout ==== */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
}

section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

/* ==== Typography ==== */

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #4A4A4A;
}

.hero h1,
.features-header h2,
.how h2,
.cta-section h2,
.legal-hero h1 {
  text-transform: uppercase;
  letter-spacing: .015em;
}

.btn {
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: .5rem;
}

p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

/* ==== Nav ==== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 251, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #8A8A8A;
  letter-spacing: .08em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
}

.nav-cta {
  padding: 10px 18px !important;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-lg);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 54px rgba(0, 166, 81, .28);
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ==== Hero ==== */

.hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M60 40h20v30h30v20H80v30H60V90H30V70h30z'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: .9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: #fff;
  margin: 0 auto 1.2rem;
  max-width: 880px;
  text-align: center;
  align-self: center;
}

.hero .lead {
  color: rgba(255, 255, 255, .88);
  max-width: 640px;
  margin: 0 auto 2.4rem;
  font-size: 1.25rem;
  text-align: center;
  align-self: center;
}

.hero-ctas {
  align-self: center;
}

.hero-logo {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  animation: float 4.5s ease-in-out infinite;
}

.hero-logo img {
  width: 100px;
  height: 100px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .6; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==== Buttons ==== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
  color: var(--green-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.btn-green {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(0, 166, 81, .28);
  color: #fff;
}

/* ==== Features ==== */

.features {
  background: var(--offwhite);
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green-deep);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .95rem;
  margin: 0;
}

/* ==== How ==== */

.how {
  background: var(--green-mist);
  position: relative;
  overflow: hidden;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.how-step {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.how-step-number {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 7rem;
  font-weight: 800;
  color: var(--green-soft);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.how-step-content {
  position: relative;
  z-index: 1;
}

.how-step h3 {
  margin-bottom: 10px;
}

/* ==== CTA section ==== */

.cta-section {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M60 40h20v30h30v20H80v30H60V90H30V70h30z'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .7;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ==== Footer ==== */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
  padding: 64px 0 32px;
}

footer a {
  color: rgba(255, 255, 255, .7);
}

footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-tagline {
  font-size: .95rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-title {
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: .95rem;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==== Legal pages shared ==== */

.legal-hero {
  background: var(--gradient);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}

.legal-hero .eyebrow {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}

.legal-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .5rem;
}

.legal-hero .subtitle {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
}

.legal-body {
  padding: 72px 0 96px;
}

.legal-section {
  margin-bottom: 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.legal-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.legal-section h2 {
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 20px;
}

.legal-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gradient);
  border-radius: 50%;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
  margin-bottom: .6rem;
  color: var(--ink);
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: .8rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: .4rem;
}

.legal-section strong {
  color: var(--ink);
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.info-card {
  padding: 14px 16px;
  background: var(--green-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.info-label {
  font-size: .7rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-value {
  color: var(--ink);
  font-weight: 600;
}

.update-date {
  text-align: center;
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 48px;
  font-size: .9rem;
}

/* ==== Alert / warning ==== */

.alert {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid;
  display: flex;
  gap: 14px;
  margin: 24px 0;
}

.alert-danger {
  background: rgba(212, 63, 63, .06);
  border-color: rgba(212, 63, 63, .25);
}

.alert-danger .alert-icon {
  color: var(--danger);
  flex-shrink: 0;
}

.alert-title {
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 4px;
}

.alert p {
  margin-bottom: 0;
  color: var(--ink);
}

/* ==== Animations ==== */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2, .65, .4, 1),
              transform 800ms cubic-bezier(.2, .65, .4, 1);
}

[data-animate].in {
  opacity: 1;
  transform: translateY(0);
}
