/* APEX AGENCY — profil numérique IzyLink. Conçu pour le téléphone d'abord. */

@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* Couleurs relevées sur le logo d'origine. */
:root {
  --navy: #0d2c54; --navy-mid: #123566; --navy-soft: #1b4a86; --navy-deep: #07203f;
  --orange: #e8842e; --orange-light: #f5a63f; --orange-soft: #fdf2e6;
  --blue-soft: #eef3fa;
  --ink: #0d2c54; --muted: #56617a; --faint: #7a869a;
  --bg: #f6f7fa; --card: #ffffff; --line: #e6e9f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 44, 84, .05), 0 10px 26px rgba(13, 44, 84, .08);
  --wrap: 34rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.go { width: 16px; height: 16px; color: var(--faint); margin-left: auto; }

/* ---------- Logo ---------- */
/* Mêmes rapports que sur la carte : tout se règle avec --b, la hauteur du symbole. */
.brand { --b: 44px; display: flex; align-items: center; gap: calc(var(--b) * .20); }
.brand-mark { height: var(--b); width: auto; display: block; flex: none; }
.brand-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: calc(var(--b) * .42);
  line-height: 1; letter-spacing: -.015em; white-space: nowrap; }
.brand-sign { margin-top: calc(var(--b) * .10); font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: calc(var(--b) * .126); letter-spacing: calc(var(--b) * .0126); text-indent: calc(var(--b) * .0126);
  line-height: 1; white-space: nowrap; }
.brand-v { flex-direction: column; gap: calc(var(--b) * .10); text-align: center; }
.brand-sombre .b-apex, .brand-sombre .brand-sign { color: var(--navy); }
.brand-clair .b-apex, .brand-clair .brand-sign { color: #fff; }
.brand .b-agency { color: var(--orange); }

/* ---------- En-tête ---------- */
.hero { position: relative; overflow: hidden; padding: 32px 16px 66px; text-align: center;
  background: radial-gradient(115% 95% at 14% 4%, var(--navy-soft) 0%, var(--navy-mid) 42%, var(--navy-deep) 100%); color: #fff; }
.hero::before { content: ""; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 132, 46, .5) 0%, rgba(232, 132, 46, 0) 70%); }
.hero::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .16) 1px, transparent 1.2px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to top right, #000 5%, transparent 65%); mask-image: linear-gradient(to top right, #000 5%, transparent 65%); }
.hero-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.hero .brand { --b: 78px; justify-content: center; }
.hero .devise { margin-top: 18px; font-size: .92rem; color: rgba(255, 255, 255, .78); }

/* ---------- Blocs ---------- */
main { position: relative; z-index: 1; max-width: var(--wrap); margin: -50px auto 0; padding: 0 16px 40px; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; }
.card h2 { font-family: "Montserrat", sans-serif; font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .92rem; }
.card p + p { margin-top: 8px; }

/* ---------- Profil ---------- */
.profile { text-align: center; padding-top: 24px; }
.avatar { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-soft), var(--navy)); color: #fff;
  display: grid; place-items: center; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange-soft); }
.profile h1 { font-family: "Montserrat", sans-serif; font-size: 1.32rem; line-height: 1.25; font-weight: 800; color: var(--navy); }
.profile .role { margin-top: 6px; color: var(--orange); font-weight: 600; font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; }
.profile .org-small { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.actions { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink); }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: linear-gradient(135deg, var(--orange), var(--orange-light)); border-color: var(--orange); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Coordonnées ---------- */
.contacts, .links { list-style: none; display: grid; gap: 2px; }
.contacts li a, .contacts li .static, .links li a { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-radius: 10px; }
.contacts li a:active, .links li a:active { background: var(--orange-soft); }
.contacts li + li, .links li + li { border-top: 1px solid var(--line); }
.contacts .ico, .links .ico { color: var(--navy); }
.contacts .ico.go, .links .ico.go { color: var(--faint); }
.contacts span > span, .links span > span, .contacts a > span, .contacts .static > span, .links a > span {
  display: flex; flex-direction: column; font-weight: 500; font-size: .95rem; min-width: 0; word-break: break-word; }
.contacts small, .links small { color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.links { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.links li + li { border-top: 1px solid var(--line); }

.qr-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.qr-block .qr { width: 96px; height: 96px; flex: none; padding: 6px; border: 1px solid var(--line); border-radius: 12px; }
.qr-block svg { display: block; width: 100%; height: 100%; }
.qr-block p { font-size: .84rem; }

/* ---------- Services et valeurs ---------- */
.services { list-style: none; display: grid; gap: 14px; }
.services li { display: flex; gap: 12px; }
.services .ico { color: var(--orange); margin-top: 2px; }
.services h3 { font-size: .95rem; font-weight: 600; }
.services p { font-size: .85rem; margin-top: 2px; }

.valeurs { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.valeurs li { border-left: 3px solid var(--orange); padding: 2px 0 2px 10px; }
.valeurs b { display: block; font-family: "Montserrat", sans-serif; font-size: .9rem; font-weight: 700; color: var(--navy); }
.valeurs span { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.35; }

.contact-org { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.contact-org a { display: flex; align-items: center; gap: 10px; }
.contact-org .ico { color: var(--navy); }
.contact-org span { display: flex; flex-direction: column; font-weight: 500; font-size: .92rem; min-width: 0; word-break: break-word; }
.contact-org small { color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .86); padding: 26px 16px 30px; text-align: center; }
.footer .brand { --b: 42px; justify-content: center; margin-bottom: 18px; }
.footer .addr { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; margin-bottom: 8px; word-break: break-word; }
.footer .ico { width: 17px; height: 17px; color: var(--orange-light); }
.footer a { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.social { list-style: none; display: flex; justify-content: center; gap: 12px; margin: 16px 0 14px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; border: 0; }
.footer .social .ico { color: #fff; }
.copy { font-size: .74rem; color: rgba(255, 255, 255, .6); }

/* ---------- Écrans larges ---------- */
@media (min-width: 720px) {
  :root { --wrap: 46rem; }
  .hero { padding: 46px 16px 84px; }
  .hero .brand { --b: 96px; }
  main { margin-top: -58px; grid-template-columns: 1fr 1fr; align-items: start; }
  .card { padding: 24px 22px; }
  .profile, #services { grid-column: 1 / -1; }
  .actions { grid-template-columns: repeat(4, 1fr); max-width: 32rem; margin-inline: auto; }
  .services { grid-template-columns: 1fr 1fr; gap: 16px 22px; }
  .valeurs { grid-template-columns: repeat(3, 1fr); }
  .contacts a > span, .contacts .static > span, .links a > span { font-size: .89rem; }
}
