/* ============================================================
   Pharmacie des Amériques — La Rochelle
   ============================================================ */

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

:root {
  --dark:   #18332F;
  --dark2:  #1e3d38;
  --mid:    #34B78F;
  --bright: #00E19E;
  --yellow: #FFB81C;
  --white:  #ffffff;
  --muted:  rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.1);
  --card:   rgba(255,255,255,0.05);
  --card2:  rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Inter', sans-serif; }

/* PAGE SYSTEM */
.page { display: none; }
.page.active { display: block; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(24,51,47,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; flex-direction: column; gap: 2px; cursor: pointer; flex-shrink: 0; }
.nav-name  { font-weight: 800; font-size: 15px; color: var(--white); letter-spacing: 0.3px; }
.nav-network { display: flex; align-items: center; gap: 5px; }
.nav-network-label { font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 0.5px; }
.nav-network-logo  { font-size: 9px; font-weight: 800; letter-spacing: 2px; color: var(--bright); }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-size: 12px; color: var(--muted);
  padding: 6px 10px; border-radius: 4px;
  cursor: pointer; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--bright); }

/* Dropdown Services */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a i { font-size: 11px; transition: transform .2s; }
.nav-dropdown:hover > a i,
.nav-dropdown.open > a i { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  padding-top: 8px; /* pont invisible — la souris reste sur .nav-dropdown */
  min-width: 220px;
  z-index: 300;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: 8px; left: 0; right: 0; bottom: 0;
  background: #1a3d38;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 5px;
  font-size: 12px; color: var(--muted);
  transition: color .15s, background .15s;
  white-space: nowrap;
  position: relative; /* au-dessus du ::before */
}
.nav-dropdown-menu a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-dropdown-menu a i { color: var(--bright); font-size: 15px; }
.nav-dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  background: var(--bright); color: var(--dark);
  font-size: 12px; font-weight: 700; padding: 9px 16px;
  border-radius: 4px; border: 2px solid var(--bright);
  transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: #00c98e; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 5px;
  background: none; border: none; border-radius: 4px;
  transition: background .2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    background: rgba(24,51,47,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0;
    padding: 8px 0 16px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 14px; padding: 12px 24px; border-radius: 0; }
  .nav-hamburger { display: flex; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: clamp(40px,7vw,80px) clamp(16px,5vw,80px);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-cross {
  position: absolute; right: -40px; top: -40px;
  opacity: 0.05; width: 300px; height: 300px; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--bright);
  background: rgba(0,225,158,0.08);
  border: 1px solid rgba(0,225,158,0.22);
  padding: 5px 14px; border-radius: 2px;
  margin-bottom: 18px; letter-spacing: 0.8px; font-weight: 500;
}
.hero h1 {
  font-weight: 800; font-size: clamp(28px,5vw,52px); color: var(--white);
  line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.hero h1 span { color: var(--bright); }
.hero-sub  { font-size: 12px; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.hero p    { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 520px; margin-bottom: 28px; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--bright); color: var(--dark);
  font-size: 14px; font-weight: 700; padding: 13px 22px;
  border-radius: 4px; border: 2px solid var(--bright);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s;
}
.btn-primary:hover { background: #00c98e; border-color: #00c98e; }
.btn-outline {
  background: transparent; color: var(--bright);
  font-size: 14px; font-weight: 600; padding: 13px 22px;
  border-radius: 4px; border: 2px solid var(--bright);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(0,225,158,0.1); }

/* ── INFO STRIP ──────────────────────────────────────────── */
.info-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--border);
  background: var(--dark2);
}
.info-cell {
  padding: 18px 22px; display: flex; align-items: center;
  gap: 14px; border-right: 1px solid var(--border);
}
.info-cell:last-child { border-right: none; }
.info-icon {
  width: 38px; height: 38px; background: rgba(52,183,143,0.12);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon i { font-size: 18px; color: var(--bright); }
.info-label  { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; margin-bottom: 2px; }
.info-val    { font-size: 13px; font-weight: 700; color: var(--white); }
.info-val a  { color: var(--white); transition: color .2s; }
.info-val a:hover { color: var(--bright); }
.info-val-sm { font-size: 11px; color: var(--muted); margin-top: 1px; }
@media (max-width: 560px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-cell  { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── SECTIONS ────────────────────────────────────────────── */
section {
  padding: clamp(32px,5vw,64px) clamp(16px,5vw,80px);
  border-bottom: 1px solid var(--border);
}
section:nth-child(even) { background: var(--dark2); }
.eyebrow       { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); font-weight: 600; margin-bottom: 4px; }
.section-title { font-weight: 800; font-size: clamp(18px,3vw,24px); text-transform: uppercase; color: var(--white); margin-bottom: 24px; letter-spacing: 0.3px; }

/* ── SERVICES ────────────────────────────────────────────── */
.services-seo { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.svc-star {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px;
  display: flex; align-items: flex-start; gap: 18px;
  transition: border-color .2s, transform .2s;
}
.svc-star:hover { transform: translateY(-2px); border-color: rgba(0,225,158,0.3); }
.svc-star-icon {
  width: 48px; height: 48px; background: var(--bright);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-star-icon i { font-size: 24px; color: var(--dark); }
.svc-star-name { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.svc-star-desc { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 300; }
.svc-star-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px; font-size: 12px; font-weight: 600;
  color: var(--bright); transition: gap .2s;
}
.svc-star-link:hover { gap: 8px; }

.services-other { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.svc-other {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .2s;
}
.svc-other:hover { border-color: rgba(52,183,143,0.3); }
.svc-other-icon {
  width: 36px; height: 36px; background: rgba(0,225,158,0.1);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-other-icon i { font-size: 18px; color: var(--bright); }
.svc-other-name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.svc-other-desc { font-size: 12px; color: var(--muted); line-height: 1.4; font-weight: 300; }
@media (max-width: 500px) { .services-other { grid-template-columns: 1fr; } }

/* ── ORDONNANCE ──────────────────────────────────────────── */
.ordo-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
.ordo-intro {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  font-weight: 300; margin-bottom: 28px; max-width: 520px;
}
.ordo-steps {
  list-style: none; display: flex; flex-direction: column;
  gap: 16px; margin-bottom: 32px;
}
.ordo-steps li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.6;
}
.ordo-steps li strong { color: var(--white); font-weight: 600; }
.ordo-step-num {
  width: 26px; height: 26px; background: var(--bright);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--dark); flex-shrink: 0; margin-top: 1px;
}
.btn-ordo-mail { font-size: 15px; padding: 15px 28px; border-radius: 6px; }
.ordo-alt {
  margin-top: 16px; font-size: 13px; color: var(--muted);
}
.ordo-alt a { color: var(--bright); font-weight: 600; }
.ordo-alt a:hover { text-decoration: underline; }

.ordo-shield {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; text-align: center;
}
.ordo-shield-icon {
  width: 56px; height: 56px; background: rgba(0,225,158,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.ordo-shield-icon i { font-size: 28px; color: var(--bright); }
.ordo-shield h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.ordo-shield p  { font-size: 12px; color: var(--muted); line-height: 1.7; font-weight: 300; margin-bottom: 18px; }
.ordo-shield-tags { display: flex; flex-direction: column; gap: 8px; }
.ordo-shield-tags span {
  font-size: 11px; font-weight: 600; color: var(--bright);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ordo-shield-tags i { font-size: 13px; }

@media (max-width: 680px) {
  .ordo-layout { grid-template-columns: 1fr; }
  .ordo-shield { text-align: left; }
  .ordo-shield-icon { margin: 0 0 16px; }
  .ordo-shield-tags { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .ordo-shield-tags span { justify-content: flex-start; }
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }

.contact-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
}
.contact-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.contact-card > p { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 300; margin-bottom: 22px; }

/* Phone card */
.contact-card--phone { text-align: center; }
.contact-card-icon {
  width: 60px; height: 60px; background: rgba(0,225,158,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.contact-card-icon i { font-size: 28px; color: var(--bright); }
.contact-card--phone h3 { text-align: center; }
.contact-card--phone > p { text-align: center; }
.btn-call {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bright); color: var(--dark);
  font-size: 17px; font-weight: 800; padding: 16px 24px;
  border-radius: 8px; border: 2px solid var(--bright);
  letter-spacing: 0.5px; transition: background .2s;
  width: 100%;
}
.btn-call:hover { background: #00c98e; border-color: #00c98e; }
.contact-hours { margin-top: 12px; font-size: 11px; color: var(--muted); text-align: center; }

/* Form card */
.contact-card--form .form-field { margin-bottom: 12px; }
.form-field label { font-size: 10px; color: var(--bright); display: block; margin-bottom: 5px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%; font-size: 13px; padding: 11px 13px;
  border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.07); color: var(--white);
  font-family: 'Inter', sans-serif; transition: border-color .2s, background .2s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--bright); background: rgba(255,255,255,0.1); }
.form-field textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  width: 100%; background: var(--bright); color: var(--dark);
  font-size: 14px; font-weight: 700; padding: 13px;
  border-radius: 6px; border: 2px solid var(--bright);
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: background .2s; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: #00c98e; border-color: #00c98e; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-feedback {
  border-radius: 6px; padding: 10px 14px;
  font-size: 13px; font-weight: 500; margin-top: 10px; display: none;
}
.form-feedback.success { background: rgba(0,225,158,0.12); color: var(--bright); border: 1px solid rgba(0,225,158,0.3); display: block; }
.form-feedback.error   { background: rgba(230,45,50,0.12);  color: #ff6b6b;       border: 1px solid rgba(230,45,50,0.3);  display: block; }

@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── MARQUES ─────────────────────────────────────────────── */
.brands-intro {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  max-width: 680px; margin-bottom: 36px; font-weight: 300;
}
.brands-intro strong { color: var(--white); font-weight: 700; }

/* Catégorie */
.brand-category { margin-bottom: 40px; }
.brand-cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px; margin-bottom: 18px;
}
.brand-cat-title i { font-size: 16px; color: var(--bright); }

/* Grille */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 10px;
}

/* Carte marque */
.brand-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 14px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; transition: border-color .2s, transform .2s, background .2s;
  cursor: default;
}
.brand-card:hover {
  border-color: rgba(52,183,143,0.35);
  transform: translateY(-3px);
  background: var(--card2);
}

/* Zone logo */
.brand-logo-wrap {
  position: relative;
  width: 80px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: background .3s, padding .3s;
}
.brand-logo-wrap i { font-size: 26px; color: var(--bright); transition: opacity .2s; }
.brand-logo {
  position: absolute; inset: 4px;
  width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain;
  opacity: 0; transition: opacity .3s;
}
.brand-logo.loaded {
  opacity: 1;
}
/* Fond blanc derrière le logo chargé pour lisibilité sur fond foncé */
.brand-logo-wrap:has(.brand-logo.loaded) {
  background: rgba(255,255,255,0.92);
  padding: 4px;
}
/* Quand le logo est chargé, l'icône s'efface */
.brand-logo-wrap:has(.brand-logo.loaded) i { opacity: 0; }

.brand-name { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.3; }
.brand-sub  { font-size: 11px; color: var(--muted); font-weight: 300; }

/* Note de bas de page */
.brands-note {
  margin-top: 8px; padding: 18px 22px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
}
.brands-note p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.brands-note p i { color: var(--mid); vertical-align: -2px; margin-right: 6px; }
.brands-note strong { color: var(--white); font-weight: 700; }

/* ── RECRUTEMENT ─────────────────────────────────────────── */
.recruit-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: clamp(24px,4vw,44px); max-width: 600px;
}
.recruit-card h3 { font-size: 20px; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.recruit-card > p { font-size: 14px; color: var(--muted); line-height: 1.75; font-weight: 300; margin-bottom: 26px; }
.recruit-perks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.recruit-perk { display: flex; align-items: center; gap: 12px; }
.recruit-perk i { font-size: 18px; color: var(--bright); flex-shrink: 0; }
.recruit-perk span { font-size: 13px; color: var(--muted); font-weight: 300; }
.recruit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bright); color: var(--dark);
  font-size: 15px; font-weight: 700; padding: 15px 28px;
  border-radius: 8px; border: 2px solid var(--bright);
  transition: background .2s;
}
.recruit-btn:hover { background: #00c98e; border-color: #00c98e; }
.recruit-note { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 14px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: clamp(24px,4vw,52px) clamp(16px,5vw,80px);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 28px;
}
.footer-name { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-addr { font-size: 12px; color: var(--muted); line-height: 2.1; font-weight: 300; }
.footer-addr a { color: var(--muted); transition: color .2s; }
.footer-addr a:hover { color: var(--bright); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 12px; color: var(--muted); cursor: pointer; transition: color .2s; }
.footer-nav a:hover { color: var(--bright); }
.footer-network-label { font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.5px; margin-bottom: 4px; }
.footer-network-logo  { font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--bright); }
.footer-bottom { font-size: 11px; color: rgba(255,255,255,0.18); text-align: center; }

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(24,51,47,0.35); border-top-color: var(--dark);
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
