/* =========================================================
   YOUMED PHARMA S.A.R.L. : feuille de styles principale
   Direction « Institutionnel » : Lexend + Roboto,
   vert profond, accent menthe.

   1. Variables      5. En-tête et navigation
   2. Base           6. Sections
   3. Utilitaires    7. Formulaire
   4. Composants     8. Pied de page et responsive
   ========================================================= */

/* 1. Variables ------------------------------------------------ */
:root {
  /* fonds et texte */
  --fond:       #ffffff;
  --brume:      #eef6f3;   /* fond de section alternée */
  --encre:      #0d211b;
  --doux:       #5a6b64;
  --trait:      #e3e8e5;

  /* verts */
  --profond:    #0a3b2e;   /* aplats sombres, liens sur fond clair */
  --profond2:   #072a21;   /* barre supérieure, pied de page */
  --moyen:      #146b4e;   /* surtitres sur fond clair */
  --menthe:     #2bc79e;   /* accent, uniquement sur fond sombre ou en aplat */

  --titre: Lexend, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --texte: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius: 2px;
  --transition: 160ms ease;
}

/* 2. Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font: 400 16px/1.7 var(--texte);
  color: var(--doux);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--titre);
  color: var(--encre);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--profond); text-decoration: none; }
a:hover { color: var(--moyen); text-decoration: underline; }

img, svg { max-width: 100%; }
address { font-style: normal; }
sup { font-size: .7em; }

:focus-visible { outline: 2px solid var(--menthe); outline-offset: 3px; border-radius: 2px; }

/* 3. Utilitaires ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--menthe); color: var(--profond2);
  padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--titre); font-weight: 500;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; text-decoration: none; }

.eyebrow {
  font: 500 .72rem/1 var(--titre);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moyen);
  margin-bottom: 1.3rem;
}

.lead { font-size: 1.08rem; max-width: 56ch; }

.subhead {
  margin-top: 2.1rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--trait);
}

/* 4. Composants ------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 .92rem/1.2 var(--titre);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--menthe); color: var(--profond2); }
.btn--primary:hover { background: #24b58f; color: var(--profond2); }
.btn--ghost { border-color: var(--trait); color: var(--encre); background: #fff; }
.btn--ghost:hover { border-color: var(--moyen); color: var(--moyen); }
.btn--light { background: #fff; color: var(--profond); white-space: nowrap; }
.btn--light:hover { background: var(--brume); color: var(--profond); }
.btn--sm { padding: 10px 20px; font-size: .86rem; }

.mini-dl { margin: 0; }
.mini-dl > div {
  display: flex; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--trait);
  font-size: .92rem;
}
.mini-dl dt { flex: 0 0 96px; color: var(--encre); font-weight: 500; }
.mini-dl dd { margin: 0; overflow-wrap: anywhere; }

.checklist, .tick-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li, .tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: .65rem;
  font-size: .96rem;
}
.checklist li::before, .tick-list li::before {
  content: "";
  position: absolute; left: 2px; top: .52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--moyen);
  border-bottom: 2px solid var(--moyen);
  transform: rotate(-45deg);
}

.panel {
  background: var(--brume);
  border-top: 3px solid var(--menthe);
  padding: 32px 30px;
}
.panel__title { margin-bottom: 4px; }
.panel--tight { padding: 24px 22px; margin-top: 26px; }
.panel--tight .panel__note { margin-top: 8px; padding-top: 0; border-top: 0; }
.panel__note {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(10, 59, 46, .14);
  font-size: .86rem;
}

/* 5. Barre supérieure, en-tête, navigation --------------------- */
.topbar { background: var(--profond2); color: #a9c6bd; font-size: .8rem; }
.topbar__inner {
  display: flex; flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between; align-items: center;
  min-height: 40px;
}
.topbar p { margin: 0; }
.topbar__right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--menthe); }

.lang { display: flex; gap: 4px; align-items: center; font-size: .76rem; letter-spacing: .06em; }
.lang a, .lang__current { padding: 3px 8px; border-radius: var(--radius); }
.lang__current { background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }
.lang a { color: #8fb3a9; }
.lang a:hover { color: #fff; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--trait);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: 0 1px 16px rgba(13,33,27,.09); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 80px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 48px; height: auto; }
.brand__text { display: flex; align-items: baseline; gap: 7px; }
.brand__name {
  font: 600 1.14rem/1 var(--titre);
  color: var(--encre); letter-spacing: .01em;
}
.brand__legal { font-size: .64rem; color: #93a29b; letter-spacing: .1em; }

.nav__list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  font-size: .92rem; color: var(--encre);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: var(--profond); border-color: var(--menthe); text-decoration: none; }
.nav__list a[aria-current="page"]:not(.btn) { color: var(--profond); border-color: var(--menthe); }
.nav__list .btn, .nav__list .btn:hover { border-bottom-color: transparent; }
.nav__list .btn--primary, .nav__list .btn--primary:hover { color: var(--profond2); }

.nav-toggle {
  display: none;
  width: 44px; height: 40px;
  background: none; border: 1px solid var(--trait); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 18px; height: 2px;
  background: var(--encre); margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* 6. Héros et sections ------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(115deg, var(--profond2) 0%, var(--profond) 55%, #0d4c3a 100%);
  color: #bcd6ce;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7,42,33,.92) 0%, rgba(9,50,39,.74) 30%, rgba(10,59,46,.18) 58%, rgba(10,59,46,0) 100%),
    radial-gradient(700px 480px at 84% 22%, rgba(43,199,158,.18), transparent 66%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 74px);
}
/* bande de produits en fond de héros.
   Visuels officiels ARKONA, détourés sur fond transparent. */
.hero__fond {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 3vw, 46px);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.hero__piste {
  display: flex; align-items: center;
  gap: clamp(30px, 4vw, 64px);
  width: max-content;
  opacity: .85;
  animation: defile 78s linear infinite;
}
.hero__piste--inverse {
  animation-duration: 104s;
  animation-direction: reverse;
  opacity: .62;
}
.hero__piste img {
  flex: none;
  height: clamp(132px, 15.5vw, 250px);
  width: auto;
}
@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 58px; align-items: center;
  padding-block: clamp(60px, 8vw, 112px);
}
.hero h1 { color: #fff; }
/* les produits défilent derrière : une ombre douce garde le texte lisible
   quand un visuel clair passe dessous */
.hero .eyebrow, .hero h1, .hero .lead {
  text-shadow: 0 2px 20px rgba(4, 24, 18, .85), 0 1px 3px rgba(4, 24, 18, .6);
}
.hero .eyebrow { color: var(--menthe); }
.hero .lead { color: #bcd6ce; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__card {
  background: rgba(6,38,29,.82);
  border: 1px solid rgba(255,255,255,.18);
  border-top: 3px solid var(--menthe);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(7px) saturate(1.2);
}
.hero__card-title {
  font: 500 .72rem/1 var(--titre);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--menthe); margin-bottom: 16px;
}
.hero__card address { font-size: .95rem; color: #fff; margin-bottom: 20px; }
.hero__card .mini-dl > div {
  display: block; padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__card .mini-dl dt {
  font: 500 .68rem/1 var(--titre);
  letter-spacing: .14em; text-transform: uppercase;
  color: #8fb3a9; margin-bottom: 3px;
}
.hero__card .mini-dl dd { font-size: .9rem; color: #fff; }
.hero__card a { color: var(--menthe); }
.hero__card a:hover { color: #fff; }

/* en-tête des pages intérieures, même aplat que le héros */
.page-head {
  position: relative;
  background: linear-gradient(115deg, var(--profond2) 0%, var(--profond) 70%, #0d4c3a 100%);
  color: #bcd6ce;
  padding-block: clamp(40px, 5vw, 68px) clamp(36px, 4.5vw, 60px);
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.page-head .lead { color: #bcd6ce; }

.breadcrumb { font-size: .82rem; color: #8fb3a9; margin-bottom: 18px; }
.breadcrumb a { color: var(--menthe); }
.breadcrumb span { margin: 0 8px; }
.breadcrumb span[aria-current] { margin-left: 0; color: #bcd6ce; }

.section { padding-block: clamp(60px, 7vw, 100px); }
.section--alt { background: var(--brume); border-block: 1px solid var(--trait); }
.section__head { max-width: 62ch; margin-bottom: 48px; }
.section__intro { font-size: 1.02rem; }

.grid-2 { display: grid; grid-template-columns: 1.25fr .75fr; gap: 58px; align-items: start; }

/* grille d'activités : filets partagés plutôt que cartes détachées */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  border-top: 1px solid var(--trait);
  border-left: 1px solid var(--trait);
  background: #fff;
}
.card {
  padding: 34px 30px;
  border-right: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
  transition: background var(--transition);
}
.card:hover { background: var(--brume); }
.card__icon {
  width: 28px; height: 28px; margin-bottom: 20px;
  fill: none; stroke: var(--moyen); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.card:hover .card__icon { stroke: var(--profond); }
.card p { font-size: .93rem; margin: 0 0 .7em; }
.card p:last-child { margin-bottom: 0; }
.card__liste { list-style: none; margin: .3rem 0 0; padding: 0; }
.card__liste li {
  position: relative; padding-left: 15px;
  font-size: .89rem; line-height: 1.5; margin-bottom: .32rem;
  color: var(--encre); font-weight: 500;
}
.card__liste li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; background: var(--menthe);
}
.link-produits { font: 500 .88rem var(--titre); color: var(--moyen); }
.link-produits::after { content: " \2192"; }

.band { background: var(--profond); color: #bcd6ce; }
.band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-block: 56px;
}
.band h2 { color: #fff; }
.band p { margin: 0; max-width: 62ch; }

/* --- liste de produits ------------------------------------------ */
.groupe + .groupe { margin-top: 68px; }
.groupe__titre {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  padding-top: 18px;
  border-top: 3px solid var(--menthe);
  margin-bottom: 0;
}
.groupe__intro { font-size: .95rem; margin-top: .4em; }

.produit {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 52px;
  align-items: start;
  padding-block: 48px;
  border-top: 1px solid var(--trait);
}
.groupe .produit:first-of-type { border-top: 0; padding-top: 40px; }

/* fond noir : les photos fournies sont détourées sur noir,
   le panneau se confond donc avec l'image */
.produit__media {
  background: #000;
  padding: 26px;
  display: grid;
  place-items: center;
}
.produit__media img { width: 100%; height: auto; display: block; }

.produit__marque {
  display: inline-block;
  font: 500 .68rem/1 var(--titre);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--moyen);
  border: 1px solid var(--trait);
  padding: 5px 10px;
  margin-bottom: 14px;
}
.produit__nom {
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  color: var(--encre); letter-spacing: -.02em;
  margin: 0 0 .2em;
}
.produit__type { font-size: 1.02rem; color: var(--encre); margin-bottom: 1.1em; }

.produit__sous {
  font: 500 .72rem/1 var(--titre);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--moyen);
  margin: 26px 0 12px;
}

.specs { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
.specs > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-top: 1px solid var(--trait);
  font-size: .89rem;
}
.specs dt { color: var(--doux); }
.specs dd { margin: 0; color: var(--encre); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

.produit__liens { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 900px) {
  .produit { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
  .specs { grid-template-columns: 1fr; }
}

/* 7. Contact et formulaire --------------------------------------- */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

.form { background: #fff; border: 1px solid var(--trait); padding: 34px; }
.fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.fieldset__legend {
  padding: 0 0 16px;
  font: 500 .72rem/1 var(--titre);
  letter-spacing: .2em; text-transform: uppercase; color: var(--moyen);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 6px;
  font: 500 .85rem var(--titre); color: var(--encre);
}
.field label span { color: var(--moyen); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  font: 400 .94rem var(--texte);
  color: var(--encre); background: #fff;
  border: 1px solid var(--trait); border-radius: var(--radius);
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--moyen); outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field--check { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.field--check input { width: 17px; height: 17px; accent-color: var(--moyen); }
.field--check label { margin: 0; font-weight: 400; color: var(--doux); font-family: var(--texte); }

/* piège à robots : hors écran, jamais vu ni tabulé par un visiteur */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .8rem; color: #93a29b; margin: 14px 0 0; }
.form__status { font-size: .9rem; margin: 14px 0 0; }
.form__status.is-ok { color: var(--moyen); font-weight: 500; }
.form__status.is-error { color: #b3261e; }

.contact__info > h2 { font-size: 1.25rem; margin-bottom: 14px; }
.contact__info address { font-size: .95rem; margin-bottom: 20px; }

.map {
  margin-top: 24px;
  height: 190px;
  display: grid; place-items: center;
  border: 1px solid var(--trait);
  background:
    repeating-linear-gradient(0deg,  var(--trait) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--trait) 0 1px, transparent 1px 34px),
    #fff;
  color: var(--encre);
  font: 500 .85rem var(--titre);
}
.map span { background: #fff; padding: 7px 14px; border: 1px solid var(--trait); }

/* 8. Pied de page ------------------------------------------------ */
.site-footer { background: var(--profond2); color: #8fb3a9; font-size: .89rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr .75fr 1fr;
  gap: 48px;
  padding-block: 58px 42px;
}
.site-footer h2 {
  font: 500 .72rem/1 var(--titre);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--menthe); margin-bottom: 18px;
}
.site-footer img { width: 50px; margin-bottom: 16px; }
.site-footer__brand p { max-width: 42ch; margin: 0; }
.site-footer address { margin-bottom: 12px; line-height: 1.6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__contact li { overflow-wrap: anywhere; }
.site-footer a { color: #d5e6e0; }
.site-footer a:hover { color: var(--menthe); text-decoration: none; }
.site-footer__legal li { display: flex; gap: 10px; flex-wrap: wrap; color: #fff; }
.site-footer__legal span:first-child { color: #6f8f84; min-width: 116px; }
.todo { color: #6f8f84; font-style: italic; }

.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
}
.site-footer__bottom p { margin: 0; }

/* 9. Responsive --------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner, .grid-2, .contact { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__right { justify-content: center; gap: 16px; }
  .topbar__links { gap: 16px; }
  .brand { gap: 9px; }
  .brand__mark { width: 42px; }
  .brand__text { gap: 6px; }
  .brand__name { font-size: 1rem; white-space: nowrap; }
  .brand__legal { font-size: .58rem; white-space: nowrap; }
  .site-header__inner { min-height: 66px; gap: 12px; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--trait);
    box-shadow: 0 12px 24px rgba(13,33,27,.1);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 20px; }
  .nav__list li { border-top: 1px solid var(--trait); }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 0; }
  .nav__list .btn { margin-top: 14px; text-align: center; }
  .nav__list li:last-child { border-top: 0; }

  /* la bande de produits gêne la lecture sur écran étroit */
  .hero__fond { display: none; }

  .form, .hero__card { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .hero__piste { animation: none; }
}
