:root {
  --cream: #f3ede1;
  --paper: #fbf8f1;
  --ink: #18333b;
  --petrol: #103942;
  --petrol-deep: #092a31;
  --copper: #b46b40;
  --gold: #d3b36f;
  --sage: #dfe4da;
  --line: rgba(16, 57, 66, .2);
  --shadow: 0 26px 75px rgba(22, 42, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--petrol);
  color: white;
}
.skip-link:focus { top: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 13px clamp(22px, 5vw, 82px);
  background: rgba(243, 237, 225, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(15px);
}
.identity {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.identity span {
  font: 600 27px Georgia, serif;
  letter-spacing: -.02em;
}
.identity small {
  margin-top: 5px;
  color: var(--copper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a, .site-header nav button {
  padding: 7px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: 700 14px "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.site-header nav a:hover, .site-header nav button:hover { color: var(--copper); }

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .7fr);
  align-items: center;
  gap: clamp(45px, 8vw, 130px);
  overflow: hidden;
  padding: clamp(70px, 9vw, 135px) clamp(24px, 8vw, 140px);
  background:
    radial-gradient(circle at 17% 15%, rgba(255,255,255,.55), transparent 28rem),
    linear-gradient(125deg, var(--cream), #e9dfcf);
  isolation: isolate;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 870px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--petrol);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
h1 {
  min-width: 0;
  max-width: 800px;
  margin-bottom: 30px;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 500;
  line-height: .92;
  overflow-wrap: break-word;
}
h1 em { color: var(--copper); font-weight: 500; }
.hero-lead {
  max-width: 750px;
  margin: 0;
  color: rgba(24, 51, 59, .8);
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid var(--petrol);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,57,66,.16); }
.button-primary { background: var(--petrol); color: white; }
.button-secondary { background: transparent; color: var(--petrol); }
.motto {
  margin: 35px 0 0;
  color: var(--copper);
  font: italic 21px Georgia, serif;
}
.portrait { position: relative; z-index: 2; max-width: 430px; margin: 0 auto; }
.portrait-frame {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(16,57,66,.28);
  border-radius: 49% 49% 18px 18px;
}
.portrait-frame::before {
  position: absolute;
  inset: -19px 25px 35%;
  z-index: -1;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 0 0;
  content: "";
}
.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 49% 49% 10px 10px;
  filter: saturate(.88) contrast(1.02);
  box-shadow: var(--shadow);
}
.portrait figcaption {
  position: absolute;
  right: -28px;
  bottom: 35px;
  min-width: 240px;
  padding: 15px 18px;
  background: rgba(9,42,49,.94);
  color: white;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.portrait figcaption strong { display: block; font: 600 23px Georgia, serif; }
.portrait figcaption span { color: rgba(255,255,255,.72); font-size: 13px; }
.hero-decoration { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-decoration i {
  position: absolute;
  border: 1px solid rgba(16,57,66,.1);
  border-radius: 50%;
}
.hero-decoration i:nth-child(1) { width: 500px; height: 500px; right: -160px; top: -130px; }
.hero-decoration i:nth-child(2) { width: 320px; height: 320px; left: 43%; bottom: -210px; }
.hero-decoration i:nth-child(3) { width: 90px; height: 90px; left: 6%; top: 15%; background: rgba(180,107,64,.07); }

.universes { padding: clamp(85px, 10vw, 150px) clamp(24px, 7vw, 120px); background: var(--paper); }
.section-heading { max-width: 900px; margin-bottom: 58px; }
.section-heading h2, .journey h2, .future h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.02;
}
.section-heading > p:last-child { max-width: 760px; color: rgba(24,51,59,.72); font-size: 20px; }
.universe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.universe-card {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(32px, 4vw, 55px);
  color: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform .22s ease;
}
.universe-card:hover { transform: translateY(-6px); }
.author-card {
  background:
    linear-gradient(140deg, rgba(9,42,49,.96), rgba(16,57,66,.9)),
    url("https://boulotalain.fr/assets/images/hero-livres.webp") center/cover;
}
.ai-card { background: linear-gradient(140deg, #9f5635, #c07b4c); }
.tech-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom left, black, transparent 72%);
}
.card-number { position: absolute; top: 25px; right: 30px; color: rgba(255,255,255,.4); font: 500 70px Georgia, serif; }
.card-icon { width: 64px; height: 64px; margin-bottom: 55px; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 2; }
.ai-card .card-icon svg { stroke: #fff0ce; }
.card-label { margin: 0 0 13px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ai-card .card-label { color: #ffe9bd; }
.universe-card h3 { max-width: 560px; margin-bottom: 20px; color: white; font-size: clamp(37px, 4vw, 57px); font-weight: 500; line-height: 1; }
.universe-card > p:not(.card-label) { max-width: 590px; margin: 0; color: rgba(255,255,255,.78); font-size: 18px; }
.universe-card ul { display: grid; gap: 7px; margin: 27px 0 35px; padding: 0; list-style: none; color: rgba(255,255,255,.88); font-size: 15px; }
.universe-card li::before { margin-right: 9px; color: var(--gold); content: "—"; }
.ai-card li::before { color: #ffe9bd; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: auto; }
.button-light { border-color: white; background: white; color: var(--petrol); }
.text-link { color: white; font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link span { margin-left: 5px; color: var(--gold); }
.text-link.muted { color: rgba(255,255,255,.65); font-weight: 600; }

.journey {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(55px, 9vw, 140px);
  padding: clamp(85px, 11vw, 170px) clamp(24px, 8vw, 140px);
  background: var(--sage);
}
.journey-heading { align-self: start; position: sticky; top: 120px; }
.journey-copy .lead { margin-top: 0; color: var(--petrol); font: 500 clamp(27px, 3vw, 39px)/1.3 Georgia, serif; }
.journey-copy > p:not(.lead) { color: rgba(24,51,59,.76); font-size: 19px; }
.milestones { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 45px; border-top: 1px solid var(--line); }
.milestones span { display: grid; gap: 3px; padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); }
.milestones span:nth-child(odd) { border-right: 1px solid var(--line); }
.milestones span:nth-child(even) { padding-left: 24px; }
.milestones b { color: var(--copper); font: 600 27px Georgia, serif; }
.milestones small { font-weight: 700; }

.future {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: center;
  gap: 70px;
  padding: clamp(75px, 9vw, 130px) clamp(24px, 7vw, 120px);
  background: var(--cream);
}
.future > div:first-child > p:last-child { color: rgba(24,51,59,.7); }
.future-items { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.future-items > * {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.future-items span { margin-bottom: auto; color: var(--copper); font: 600 32px Georgia, serif; }
.future-items strong { color: var(--petrol); font: 600 23px/1.1 Georgia, serif; }
.future-items small { margin-top: 10px; color: rgba(24,51,59,.65); line-height: 1.45; }
.future-items a:hover { border-color: var(--copper); box-shadow: var(--shadow); transform: translateY(-4px); }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 55px clamp(24px, 7vw, 120px);
  background: var(--petrol-deep);
  color: white;
}
footer strong { font: 600 28px Georgia, serif; }
footer p { margin: 4px 0 0; color: rgba(255,255,255,.65); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
footer a { color: white; font-size: 14px; font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--gold); }
.copyright { grid-column: 1 / -1; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.15); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .portrait { animation: appear .75s ease both; }
  .portrait { animation-delay: .14s; }
  @keyframes appear { from { opacity: 0; transform: translateY(18px); } }
}
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .55fr; gap: 45px; padding-inline: 45px; }
  .universe-grid, .journey, .future { grid-template-columns: 1fr; }
  .journey-heading { position: static; }
}
/*
 * Le navigateur intégré de Facebook conserve parfois un viewport intermédiaire
 * (environ 760 à 850 px). Le passage en une colonne doit donc intervenir plus
 * tôt que sur un navigateur mobile classique.
 */
@media (max-width: 920px) {
  body { font-size: 17px; }
  .site-header { min-height: 72px; }
  .site-header nav a { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 60px 22px 80px; }
  .hero-copy, .hero-lead, h1 { width: 100%; max-width: 100%; }
  h1 { font-size: clamp(42px, 11vw, 62px); line-height: .98; }
  .hero-lead { font-size: clamp(18px, 3.3vw, 21px); }
  .portrait { max-width: 330px; }
  .portrait figcaption { right: -8px; }
  .universes, .journey, .future { padding-inline: 22px; }
  .universe-card { min-height: 580px; }
  .future-items { grid-template-columns: 1fr; }
  .future-items > * { min-height: 170px; }
  footer { grid-template-columns: 1fr; }
  footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .copyright { grid-column: 1; }
}
@media (max-width: 460px) {
  .site-header { gap: 10px; padding-inline: 16px; }
  .identity span { font-size: 23px; }
  .identity small { font-size: 9px; }
  .site-header nav button { font-size: 13px; }
  h1 { font-size: clamp(39px, 12.5vw, 54px); }
  .hero-actions .button, .card-actions .button { width: 100%; }
  .milestones { grid-template-columns: 1fr; }
  .milestones span:nth-child(odd) { border-right: 0; }
  .milestones span:nth-child(even) { padding-left: 0; }
}
