/* SunyLife RP — site vitrine */
/* Archivo (SIL Open Font License), hébergée sur le site : pas d'appel à Google */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"), url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
:root {
  --night: #1b1026;
  --dusk: #3a1d4d;
  --ember: #ff7a3d;
  --gold: #ffc83d;
  --sand: #f3e3c3;
  --sand-dim: #c9b79a;
  --ink: #120a1a;
  --ems: #ffc83d;
  --lspd: #5b8cff;
  --line: rgba(243, 227, 195, 0.14);
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--sand);
  font: 400 17px/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Titres : Archivo large et très gras, comme une affiche */
.display, h1, h2 {
  font-family: var(--font);
  font-weight: 900;
  font-stretch: 125%;
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0;
}
h1 { font-size: clamp(44px, 8.4vw, 116px); }
h2 { font-size: clamp(34px, 5vw, 64px); margin-bottom: 20px; }
h3 { font-size: 21px; font-weight: 800; font-stretch: 112%; margin: 0 0 8px; line-height: 1.2; }
p { margin: 0 0 16px; max-width: 64ch; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--sand); }
.muted { color: var(--sand-dim); }

/* ─── En-tête ───────────────────────────────────── */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background .25s, box-shadow .25s;
}
.site-head.scrolled { background: rgba(27, 16, 38, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-stretch: 125%; font-size: 20px; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--sand); }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(243, 227, 195, .1); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--sand); border-radius: 10px; padding: 8px 12px; font: 600 15px var(--font); cursor: pointer; }

/* ─── Boutons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; text-decoration: none;
  font: 800 16px var(--font); font-stretch: 110%; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--gold); color: var(--ink); }
.btn-sun:hover { background: #ffd666; }
.btn-line { border-color: rgba(243, 227, 195, .45); color: var(--sand); }
.btn-line:hover { border-color: var(--sand); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6a75f4; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Hero : coucher de soleil sur Los Santos ───── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #1b1026 0%, #3a1d4d 34%, #9b3a5a 58%, #ff7a3d 78%, #ffb347 100%);
}
.hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-art .sun { transform-origin: 50% 100%; animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-in { padding-top: 120px; padding-bottom: 22vh; }
.hero h1 { color: var(--sand); text-shadow: 0 2px 2px rgba(27, 16, 38, .35), 0 4px 40px rgba(27, 16, 38, .55); max-width: 11ch; }
.hero .lead { margin: 26px 0 34px; max-width: 46ch; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--sand-dim); }

/* ─── Sections ──────────────────────────────────── */
section { padding: 110px 0; }
.band-dusk { background: var(--dusk); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.pillars { display: grid; gap: 28px; margin-top: 8px; }
.pillar { padding-left: 22px; border-left: 3px solid var(--ember); }
.pillar p { margin: 0; color: var(--sand-dim); }

/* Services : panneaux asymétriques, chaque service a sa couleur */
.services { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 40px; }
.service {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 36px; border-radius: 28px; overflow: hidden; text-decoration: none;
  color: var(--ink);
}
.service .display { font-size: clamp(56px, 7vw, 104px); margin-bottom: 14px; }
.service p { color: inherit; opacity: .85; }
.service ul { list-style: none; margin: 4px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; }
.service .go { font-weight: 800; font-stretch: 112%; display: inline-flex; gap: 8px; align-items: center; }
.service:hover .go { text-decoration: underline; text-underline-offset: 4px; }
.service-ems { background: var(--ems); }
.service-ems li { background: rgba(18, 10, 26, .1); }
.service-ems .mark { position: absolute; top: 28px; right: 28px; width: 96px; height: 96px; }
.service-lspd { background: #16224a; color: var(--sand); }
.service-lspd li { background: rgba(91, 140, 255, .18); color: #cddaff; }
.service-lspd .display { color: var(--lspd); }
.soon { position: absolute; top: 30px; right: 30px; padding: 6px 14px; border-radius: 99px; background: rgba(91, 140, 255, .2); color: #cddaff; font-weight: 700; font-size: 14px; }
.more-jobs { margin-top: 22px; color: var(--sand-dim); }

/* Galerie */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 240px; gap: 14px; margin-top: 36px; }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:last-child { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(27, 16, 38, .7); font-weight: 700; font-size: 14px; }

/* Rejoindre : une vraie suite d'étapes */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: step; padding: 28px; border-radius: 22px; background: rgba(243, 227, 195, .06); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-weight: 900; font-stretch: 125%; font-size: 64px; line-height: 1; color: var(--ember); margin-bottom: 14px; }
.steps p { color: var(--sand-dim); margin-bottom: 18px; }
.connect { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.connect code { font: 600 15px ui-monospace, Menlo, Consolas, monospace; padding: 10px 14px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.copy-btn { background: none; border: 1px solid var(--line); color: var(--sand); padding: 9px 14px; border-radius: 10px; font: 600 14px var(--font); cursor: pointer; }
.copy-btn:hover { border-color: var(--sand); }

/* ─── Pages service ─────────────────────────────── */
.page-hero { padding: 170px 0 90px; position: relative; overflow: hidden; }
.page-hero.ems { background: linear-gradient(160deg, #3a1d4d 0%, #1b1026 70%); }
.page-hero.lspd { background: linear-gradient(160deg, #16224a 0%, #1b1026 75%); }
.page-hero .display { font-size: clamp(64px, 12vw, 170px); }
.page-hero.ems .display { color: var(--ems); }
.page-hero.lspd .display { color: var(--lspd); }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero .emblem { position: absolute; right: -40px; top: 120px; width: min(38vw, 420px); opacity: .9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 30px; }
.offer > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.offer > div:nth-child(odd) { border-right: 1px solid var(--line); }
.offer > div:nth-child(even) { padding-left: 26px; }
.offer p { color: var(--sand-dim); margin: 0; }
.prices { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.prices th { text-align: left; font-weight: 800; font-stretch: 112%; padding: 18px 0 8px; color: var(--ems); font-size: 15px; }
.prices td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prices td:last-child { text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices small { color: var(--sand-dim); }
.ppa-steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0 0; }
.ppa-steps li { counter-increment: s; position: relative; padding: 0 0 22px 58px; }
.ppa-steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ems); color: var(--ink); font-weight: 900; }
.ppa-steps strong { display: block; font-stretch: 112%; }
.ppa-steps span { color: var(--sand-dim); }
.callout { margin-top: 26px; padding: 22px 24px; border-radius: 18px; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .35); }
.callout p { margin: 0; }
.cta-band { text-align: left; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 44px; border-radius: 28px; background: var(--gold); color: var(--ink); }
.cta-band h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.cta-band .btn-sun { background: var(--ink); color: var(--gold); }

/* ─── Pied de page ──────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 46px 0; font-size: 15px; color: var(--sand-dim); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--sand); }
.legal { margin-top: 18px; font-size: 13px; opacity: .75; }

/* ─── Mobile ────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .intro-grid, .services, .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .service { min-height: 380px; padding: 28px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery figure:last-child { grid-column: span 2; }
  .offer { grid-template-columns: 1fr; }
  .offer > div, .offer > div:nth-child(even) { padding: 22px 0; border-right: 0; }
  .page-hero .emblem { width: 160px; right: -20px; top: 90px; opacity: .25; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; background: var(--night); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
  .nav.open { display: flex; }
  .site-head { background: rgba(27, 16, 38, .92); }
  .cta-band .inner { padding: 30px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .btn { width: 100%; }
  .hero-in { padding-bottom: 28vh; }
}

/* ─── Photos ────────────────────────────────────── */
/* Accueil : la photo (qui porte déjà le logo) en vitrine, le slogan en dessous */
.hero { display: block; min-height: 0; padding: 0; background: var(--night); }
.hero::after { content: none; }
.hero-media { position: relative; }
.hero-photo { display: block; width: 100%; height: min(88svh, 56.25vw); object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(0deg, var(--night) 0%, rgba(27, 16, 38, 0) 100%);
}
.hero-in { position: relative; margin-top: -90px; padding-top: 0; padding-bottom: 96px; }
.hero h1 { font-size: clamp(40px, 6vw, 88px); max-width: 16ch; text-shadow: none; }
.hero .lead { margin: 20px 0 28px; }

/* Rejoindre : affiche SunyLife en fond */
#rejoindre {
  background:
    linear-gradient(180deg, rgba(27, 16, 38, .9), rgba(27, 16, 38, .95)),
    url("../img/photos/affiche-sl.jpg") center / cover;
}

/* Page EMS : l'hôpital en fond du bandeau */
.page-hero.ems {
  background:
    linear-gradient(90deg, rgba(27, 16, 38, .96) 0%, rgba(27, 16, 38, .8) 50%, rgba(27, 16, 38, .4) 100%),
    url("../img/photos/ems-hopital.jpg") center 40% / cover;
}

@media (max-width: 900px) {
  .hero-photo { height: 62svh; object-position: 50% 30%; }
  .hero-in { margin-top: -40px; padding-bottom: 64px; }
  .page-hero.ems { background: linear-gradient(180deg, rgba(27, 16, 38, .75), rgba(27, 16, 38, .96)), url("../img/photos/ems-hopital.jpg") center / cover; }
}

/* ─── Emblèmes des services ─── */
.services.services { grid-template-columns: 1fr 1fr; }
.service { justify-content: flex-end; }
.service .emblem-big { width: 300px; max-width: 80%; aspect-ratio: 1; object-fit: contain; margin: 0 auto 28px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.service-ems .emblem-big { width: 250px; margin-top: 25px; margin-bottom: 53px; }
@media (max-width: 900px) { .services.services { grid-template-columns: 1fr; } .service .emblem-big { width: 220px; } .service-ems .emblem-big { width: 185px; margin-top: 18px; margin-bottom: 46px; } }
