/* Site vitrine Yui — HTML/CSS statique, aucune dépendance externe (pas de police ni de script tiers). */

:root {
  --bg: #fffaf5;
  --bg-alt: #fff3ec;
  --surface: #ffffff;
  --ink: #1e1715;
  --muted: #6d605a;
  --line: #f0e2d8;
  --brand: #e5281b;
  --action: #c62319;
  --action-hover: #a91b12;
  --red-50: #fff0ed;
  --cream: #f3ead2;
  --blue: #1565c0;
  --blue-50: #e8f1fc;
  --radius: 22px;
  --shadow-lg: 0 40px 80px -30px rgba(120, 30, 20, 0.35), 0 12px 30px -12px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 40px -22px rgba(120, 30, 20, 0.35), 0 4px 12px -4px rgba(0, 0, 0, 0.08);
  --container: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140e0d;
    --bg-alt: #1a1211;
    --surface: #211817;
    --ink: #f6ede9;
    --muted: #b8a9a3;
    --line: #35282a;
    --red-50: #2d1613;
    --blue-50: #142338;
    --action: #ee4a3c;
    --action-hover: #ff6a5d;
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--action); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 12px 28px -10px rgba(198, 35, 25, 0.7); }
.btn-primary:hover { background: var(--action-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--action); color: var(--action); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--action-hover); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 54px; height: auto; border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(198,35,25,.6); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--action); }
.nav-links .btn { padding: 10px 20px; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(229, 40, 27, .22), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -12%; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(243, 234, 210, .9), transparent 70%); pointer-events: none;
}
@media (prefers-color-scheme: dark) { .hero::after { background: radial-gradient(closest-side, rgba(229,40,27,.10), transparent 70%); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--red-50); color: var(--action); font-weight: 700; font-size: .85rem; border: 1px solid var(--line);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(229,40,27,.18); }
.hero h1 { font-size: clamp(2.2rem, 4.3vw, 3.45rem); font-weight: 900; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--action); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--action); flex: none; }

/* ---------- Cadre de capture d'écran ---------- */
.frame {
  background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.frame-bar { display: flex; gap: 7px; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 70%, var(--bg-alt)); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6058; }
.frame-bar i:nth-child(2) { background: #ffbd2e; }
.frame-bar i:nth-child(3) { background: #28c940; }
.frame img { width: 100%; }
.hero .frame img { height: auto; aspect-ratio: 2040 / 1010; object-fit: cover; object-position: top left; }
.hero .frame { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; transition: transform .5s ease; }
.hero .frame:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(0); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { color: var(--action); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }
.alt { background: var(--bg-alt); }

/* Bandeau "tout simplifié" */
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-md); transition: transform .2s ease; }
.pillar:hover { transform: translateY(-4px); }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--action); display: grid; place-items: center; margin-bottom: 18px; }
.icon-tile svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.2rem; font-weight: 800; }
.pillar p { color: var(--muted); margin-top: 10px; font-size: .98rem; }

/* Présentations alternées */
.showcase { display: grid; gap: 96px; }
.row { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.row .text h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900; margin-top: 10px; }
.row .text p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks svg { width: 22px; height: 22px; color: var(--action); flex: none; margin-top: 2px; }

/* Grille de fonctionnalités */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.feature .icon-tile { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; }
.feature .icon-tile svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; font-weight: 800; }
.feature p { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* Espace adhérent */
.member { background: linear-gradient(135deg, #0f4c9a, #1565c0 55%, #2a83e0); color: #fff; border-radius: 32px; padding: 64px 48px; overflow: hidden; position: relative; }
.member::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent 70%); }
.member-grid { position: relative; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
.member .eyebrow { color: #bfdcff; }
.member h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 900; margin-top: 12px; }
.member .lead { color: #dcebff; }
.member .checks li { color: #fff; }
.member .checks svg { color: #9fd0ff; }
.phone { width: min(300px, 78%); margin-inline: auto; background: #101418; border-radius: 42px; padding: 11px; box-shadow: 0 40px 70px -24px rgba(0,0,0,.6); }
.phone img { border-radius: 32px; width: 100%; }

/* Confiance */
.trust { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust .pillar { box-shadow: none; }

/* Appel à contact */
.cta { text-align: center; background: linear-gradient(135deg, #b71c1c, var(--brand)); color: #fff; border-radius: 32px; padding: 72px 28px; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta::before { left: -120px; bottom: -180px; }
.cta::after { right: -100px; top: -160px; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; max-width: 20ch; margin: 0 auto; }
.cta p { max-width: 52ch; margin: 18px auto 0; color: #ffe6e2; font-size: 1.1rem; }
.cta .btn { margin-top: 32px; }
.cta small { display: block; margin-top: 18px; color: #ffd2cc; }
.cta a.mail { color: #fff; font-weight: 700; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-grid .brand { font-size: 1.1rem; }
.footer-grid .brand img { width: 44px; }

/* Apparition douce */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Écrans larges ---------- */
@media (min-width: 900px) {
  .hero { padding: 96px 0 72px; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; }
  .row { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .row.reverse { grid-template-columns: 1.25fr 1fr; }
  .row.reverse .text { order: 2; }
  .member-grid { grid-template-columns: 1.2fr .8fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  section { padding: 68px 0; }
  .hero .frame { transform: none; }
  .member { padding: 44px 24px; border-radius: 24px; }
  .cta { padding: 52px 20px; border-radius: 24px; }
}

/* Très grands écrans : la capture du hero déborde un peu de sa colonne pour plus d'impact. */
@media (min-width: 1200px) {
  .hero .frame { width: 118%; }
}

/* ---------- Pages légales ---------- */
.legal { padding: 56px 0 96px; }
.legal .doc { width: min(780px, 100% - 40px); margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.legal .maj { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin-top: 44px; padding-top: 6px; }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin-top: 24px; }
.legal p, .legal li { color: var(--ink); margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 8px 0 0; }
.legal dl { margin: 16px 0 0; display: grid; grid-template-columns: 230px 1fr; gap: 10px 22px; }
.legal dt { color: var(--muted); font-weight: 700; }
.legal dd { margin: 0; }
.legal .encart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-top: 18px; }
.a-completer { background: #fff2a8; color: #5c4a00; padding: 1px 8px; border-radius: 6px; font-weight: 700; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--action); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
