:root {
  --navy-950: #050d1f;
  --navy-900: #081329;
  --navy-800: #0d1d3d;
  --navy-700: #142a55;
  --gold-100: #f6e7c3;
  --gold-300: #e6c98d;
  --gold-500: #d0a85f;
  --gold-700: #a07a38;
  --white: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(208, 168, 95, 0.28);
  --gold-grad: linear-gradient(135deg, #f6e2b0 0%, #d4ad66 45%, #a8803c 100%);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 20% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 10px; }

/* Décor de fond : globe et arc dorés */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-globe {
  position: absolute; width: 110vmax; height: 110vmax; right: -60vmax; top: -55vmax; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 65%, rgba(230, 201, 141, 0.16), transparent 40%),
    radial-gradient(rgba(230, 201, 141, 0.35) 0.8px, transparent 1.2px) 0 0 / 9px 9px,
    radial-gradient(circle at 40% 60%, #13284f, #081329 70%);
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 71%);
  mask: radial-gradient(circle, #000 55%, transparent 71%);
  opacity: 0.55;
}
.bg-arc {
  position: absolute; width: 160vmax; height: 160vmax; left: -40vmax; top: -95vmax; border-radius: 50%;
  border: 1px solid rgba(230, 201, 141, 0.35);
  box-shadow: 0 0 40px rgba(230, 201, 141, 0.08);
}

.page {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  display: grid; gap: 22px;
}

/* Hero */
.hero { text-align: center; padding-top: 8px; }
.hero-logo {
  width: min(62vw, 300px); height: auto; display: block; margin: 0 auto;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.tagline {
  margin: 6px 0 0; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
.tagline span { color: var(--gold-500); margin: 0 0.25em; }
.identity { margin-top: 26px; }
.name {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 13vw, 64px); line-height: 1;
  letter-spacing: -0.01em;
}
.name em {
  font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rule { width: 64px; height: 2px; margin: 16px auto 14px; background: var(--gold-grad); border-radius: 2px; }
.role {
  margin: 0; font-size: 26px; font-weight: 500; letter-spacing: 0.32em; padding-left: 0.32em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.company { margin: 6px 0 0; font-size: 14px; letter-spacing: 0.42em; padding-left: 0.42em; color: var(--white); }

/* Actions */
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px;
  border-radius: var(--radius); text-align: left;
  background: linear-gradient(160deg, rgba(20, 42, 85, 0.75), rgba(8, 19, 41, 0.85));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.action:hover { border-color: rgba(230, 201, 141, 0.7); }
.action:active { transform: scale(0.97); }
.action-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold-grad); color: var(--navy-900); font-size: 19px;
  box-shadow: 0 4px 12px -4px rgba(212, 173, 102, 0.6);
}
.action-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.action-wide { grid-column: span 2; }
.action-primary { background: var(--gold-grad); border-color: transparent; color: var(--navy-900); }
.action-primary .action-ico { background: var(--navy-900); color: var(--gold-300); box-shadow: none; }

/* Panneaux */
.panel {
  padding: 22px 20px; border-radius: 22px;
  background: linear-gradient(170deg, rgba(13, 29, 61, 0.82), rgba(5, 13, 31, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.section-title {
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-300);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-title.centered { justify-content: center; }
.section-title.centered::before { content: ""; width: 40px; height: 1px; background: linear-gradient(270deg, var(--line), transparent); }
.section-title.centered::after { flex: none; width: 40px; }

.contact-group { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(208, 168, 95, 0.14); }
.contact-group:first-of-type { border-top: 0; padding-top: 0; }
.contact-ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold-grad); color: var(--navy-900); font-size: 19px;
}
.eyebrow { margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-500); }
.contact-line {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin: 2px 0; font-size: 17px; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.15s;
}
a.contact-line:hover { color: var(--gold-300); }
.contact-line small { font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-mail { font-family: var(--serif); font-size: 19px; word-break: break-all; }
.contact-static { font-family: var(--serif); font-size: 20px; }
.sep { color: var(--gold-500); margin: 0 4px; }
.micro { margin: 2px 0 0; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.center { text-align: center; }

/* Présentation */
.about-text { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--white); }
.about-text strong { font-weight: 700; color: var(--gold-300); letter-spacing: 0.02em; }
.about-ambition {
  margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--gold-500);
  font-size: 14px; line-height: 1.6; color: var(--ink-soft);
}

/* Activités */
.activities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.activities li {
  display: grid; justify-items: center; gap: 10px; padding: 6px 4px;
  border-left: 1px solid var(--line);
}
.activities li:first-child { border-left: 0; }
.activities svg { font-size: 42px; color: var(--gold-300); fill: none; }
.activities span { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }

/* Carte */
.card-preview {
  display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease;
}
.card-preview:hover { transform: translateY(-2px); }
.card-preview img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--navy-900); }
.card-panel .micro { margin-top: 12px; }
.card-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s;
}
.btn svg { font-size: 18px; }
.btn:active { transform: scale(0.97); }
.btn-gold { grid-column: span 2; background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 12px 26px -14px rgba(212, 173, 102, 0.8); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line); color: var(--gold-100); }
.btn-ghost:hover { border-color: var(--gold-300); }

.footer { display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; opacity: 0.75; }
.footer img { border-radius: 6px; background: #fff; padding: 3px; }
.footer p { margin: 0; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

/* Feuilles (bottom sheets) */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 16, 0.65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade 0.2s ease; }
.sheet-body {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  animation: rise 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sheet-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--gold-300); border: 1px solid var(--line); }
.sheet-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-top: 1px solid rgba(208, 168, 95, 0.14);
}
.sheet-item:first-of-type { border-top: 0; }
.sheet-item > span:nth-child(2) { flex: 1; display: grid; }
.sheet-item b { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.sheet-item small { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.sheet-flag {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold-grad); color: var(--navy-900); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.chev { color: var(--gold-500); font-size: 20px; }
.sheet-note { text-align: center; margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--gold-grad); color: var(--navy-900); font-size: 13px; font-weight: 600; text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Apparition */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes rise { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 360px) {
  .action-label { font-size: 11.5px; }
  .activities span { font-size: 9px; letter-spacing: 0.1em; }
  .card-buttons { grid-template-columns: 1fr; }
  .btn-gold { grid-column: auto; }
}

/* Tablette / bureau */
@media (min-width: 720px) {
  .page { max-width: 640px; padding-top: 56px; gap: 28px; }
  .actions { grid-template-columns: repeat(4, 1fr); }
  .action { flex-direction: column; text-align: center; padding: 16px 10px; }
  .action-wide { grid-column: span 2; flex-direction: row; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
