/* Page d'accueil du service PharmaML de TEDIS PHARMA CI (document 42 § 9 sexies).
   Charte du groupe (docs/charte) ; police Carlito embarquée (licence OFL), aucune ressource externe. */

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/accueil/carlito-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/accueil/carlito-700.woff2') format('woff2');
}

:root {
  --rouge: #e73324;
  --rouge-action: #cf2a1c;
  --graphite: #0f1214;
  --texte: #2a2a2a;
  --ardoise: #4e575c;
  --gris: #e3e3e3;
  --fond: #f3f3f3;
  --blanc: #ffffff;
  --vert: #1e7b4e;
  --vert-doux: #e3f2ea;
  --ocre: #b7791f;
  --ocre-doux: #fbf0dc;
  --survol: #fff1ee;
  --marge: 24px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Carlito', Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--rouge-action);
}

a:focus-visible,
.bouton:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}

.cadre {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--marge);
}

/* --- Bandeau ----------------------------------------------------------------------------------- */
.bandeau {
  background: var(--blanc);
  border-bottom: 1px solid var(--gris);
}

.bandeau-contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
}

.logo {
  display: block;
  height: 64px;
  width: auto;
}

.etat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gris);
  background: var(--fond);
  color: var(--ardoise);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.etat-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ardoise);
}

.etat[data-etat='verification'] .etat-point {
  animation: pulsation 1.2s ease-in-out infinite;
}

.etat[data-etat='disponible'] {
  background: var(--vert-doux);
  border-color: var(--vert-doux);
  color: var(--vert);
}

.etat[data-etat='disponible'] .etat-point {
  background: var(--vert);
}

.etat[data-etat='indisponible'] {
  background: var(--ocre-doux);
  border-color: var(--ocre-doux);
  color: var(--ocre);
}

.etat[data-etat='indisponible'] .etat-point {
  background: var(--ocre);
}

@keyframes pulsation {
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .etat[data-etat='verification'] .etat-point {
    animation: none;
  }
}

/* --- Contenu ----------------------------------------------------------------------------------- */
.insecable {
  white-space: nowrap;
}

main.cadre {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 56px;
}

.entree {
  max-width: 760px;
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--rouge);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surtitre::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--rouge);
}

h1 {
  margin: 0 0 16px;
  color: var(--graphite);
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 12px;
  color: var(--graphite);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.chapeau {
  margin: 0;
  color: var(--ardoise);
  font-size: 21px;
}

/* Adresse à saisir */
.adresse {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--blanc);
  border: 1px solid var(--gris);
  border-radius: 8px;
}

.adresse-ligne {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.adresse code {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 12px 16px;
  background: var(--fond);
  border: 1px solid var(--gris);
  border-radius: 6px;
  color: var(--graphite);
  font-family: 'Carlito', Calibri, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  overflow-wrap: normal;
  hyphens: none;
  user-select: all;
}

.note {
  margin: 14px 0 0;
  color: var(--ardoise);
  font-size: 16px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--rouge-action);
  border-radius: 6px;
  background: var(--rouge-action);
  color: var(--blanc);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.bouton:hover {
  background: var(--rouge);
}

.bouton-fait,
.bouton-fait:hover {
  background: var(--vert);
  border-color: var(--vert);
}

.bouton-secondaire {
  background: var(--blanc);
  color: var(--rouge-action);
}

.bouton-secondaire:hover {
  background: var(--survol);
}

.icone {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Cartes */
.grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.carte {
  padding: 24px;
  background: var(--blanc);
  border: 1px solid var(--gris);
  border-radius: 8px;
}

.carte p {
  margin: 0 0 10px;
}

.carte p:last-child {
  margin-bottom: 0;
}

.carte-icone {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--rouge);
}

.liste {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.liste:last-child {
  margin-bottom: 0;
}

.liste li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rouge);
}

strong {
  color: var(--graphite);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--graphite);
  border-radius: 8px;
  color: var(--gris);
}

.contact h2 {
  color: var(--blanc);
}

.contact p {
  margin: 0 0 20px;
}

.contact .bouton-secondaire {
  border-color: var(--blanc);
}

.agences {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agences li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.agences li:first-child {
  padding-top: 0;
}

.agences li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.agence-nom {
  color: var(--blanc);
  font-weight: 700;
}

.agence-tel {
  grid-column: 2;
  align-self: center;
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.agence-tel:hover {
  color: var(--rouge);
}

/* Pied */
.pied {
  background: var(--blanc);
  border-top: 1px solid var(--gris);
  color: var(--ardoise);
  font-size: 16px;
}

.pied-contenu {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.pied a {
  color: var(--ardoise);
}

/* --- Écrans étroits ---------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .grille {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --marge: 16px;
  }
  body {
    font-size: 17px;
  }
  .bandeau-contenu {
    min-height: 76px;
  }
  .logo {
    height: 48px;
  }
  .etat {
    padding: 5px 10px;
    font-size: 14px;
  }
  main.cadre {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  h1 {
    font-size: 32px;
  }
  .chapeau {
    font-size: 19px;
  }
  .adresse,
  .contact {
    padding: 20px;
  }
  .adresse-ligne {
    flex-direction: column;
  }
  .adresse code {
    font-size: 16px;
  }
  .contact .bouton {
    width: 100%;
  }
  .agences li {
    grid-template-columns: 1fr;
  }
  .agence-tel {
    grid-row: auto;
    grid-column: 1;
    margin-top: 2px;
  }
  .pied-contenu {
    flex-direction: column;
    gap: 4px;
  }
}
