@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap");

:root {
  --navy: #061422;
  --navy-2: #0b1e30;
  --ink: #172033;
  --muted: #657080;
  --paper: #f7f4ee;
  --white: #ffffff;
  --cream: #ead7b6;
  --line: #d8d4cc;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

code {
  padding: .1rem .3rem;
  border-radius: 3px;
  background: rgba(6, 20, 34, .07);
  font-size: .9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--white);
  background: rgba(6,20,34,.97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  font: 600 1.05rem/1 "Manrope", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  padding: 27px 0 24px;
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--cream);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 558px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(ellipse at 73% 42%, rgba(58, 88, 103, .52) 0%, rgba(22, 53, 71, .26) 31%, transparent 59%),
    radial-gradient(ellipse at 92% 62%, rgba(16, 70, 91, .26) 0%, transparent 48%),
    linear-gradient(102deg, #061426 0%, #061426 43%, #0b2638 71%, #17354a 100%);
  border-bottom: 2px solid rgba(234, 215, 182, .75);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 15, 30, .22), transparent 48%),
    radial-gradient(circle at 73% 24%, rgba(255,255,255,.055), transparent 31%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 40px));
  min-height: 558px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  align-items: stretch;
}

.hero-content {
  position: relative;
  z-index: 5;
  align-self: center;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--cream);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dark-eyebrow { color: #745a35; }

.hero h1 {
  max-width: 830px;
  margin: 0;
  font: 500 clamp(4.1rem, 7.3vw, 7.15rem)/.9 "Manrope", sans-serif;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.hero-first-name {
  display: inline-block;
  letter-spacing: -.015em;
}

.hero-copy {
  max-width: 590px;
  margin: 32px 0 0;
  color: #f0f3f5;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.hero-portrait-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 558px;
  height: 558px;
  pointer-events: none;
}

.hero-portrait-halo {
  position: absolute;
  z-index: -1;
  top: 4%;
  left: 46%;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(108, 127, 136, .38) 0%, rgba(63, 91, 105, .20) 39%, transparent 72%);
  filter: blur(8px);
}

.hero-portrait {
  position: absolute;
  z-index: 2;
  right: -7px;
  bottom: 0;

  /*
    Hauteur volontairement inférieure à celle du hero.
    Le haut du PNG ne peut plus sortir du cadre sur ordinateur.
  */
  width: auto;
  height: 515px;
  max-width: none;
  max-height: none;

  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(.88) contrast(.98) brightness(.96);
  transform-origin: bottom center;
}

.hero-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  filter: blur(.1px);
}

.hero-shape-one {
  right: 3.8%;
  bottom: 45px;
  width: 195px;
  height: 195px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(87, 138, 165, .7), rgba(22, 72, 98, .18));
}

.hero-shape-two {
  right: 17.5%;
  bottom: -62px;
  width: 260px;
  height: 260px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(105, 150, 168, .32), rgba(20, 58, 77, .06));
  opacity: .07;
}

/* Buttons */
.button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.linkedin-button {
  min-height: 40px;
  padding: 9px 13px;
  font-size: .72rem;
}

.linkedin-mark {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: 700 .7rem/1 Arial, sans-serif;
  letter-spacing: -.04em;
  text-transform: none;
}

.button.light {
  color: var(--navy);
  background: var(--cream);
}

.button.outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,.52);
}

.button.outline-light:hover { background: rgba(255,255,255,.08); }

.button.dark {
  color: var(--white);
  background: var(--navy);
}

.button.dark:hover { background: #0c2539; }

.button.outline-dark {
  color: var(--navy);
  background: transparent;
  border-color: #94a0aa;
}

.button.outline-dark:hover { background: rgba(6,20,34,.05); }

.button.full { width: 100%; }

/* Main document cards */
.documents-overview {
  background: #f8f5ef;
  border-bottom: 1px solid var(--line);
}

.overview-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  min-width: 0;
  padding: 22px;
  background: rgba(255,255,255,.45);
  border: 1px solid #ded9d0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(31,38,44,.035);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #9aa1a7;
  display: grid;
  place-items: center;
  border-radius: 3px;
  font-size: .9rem;
}

.card-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-card h2 {
  margin: 0;
  font: 600 1.25rem/1.2 "Manrope", sans-serif;
}

.document-card > p {
  min-height: 48px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: .86rem;
}

.pdf-placeholder {
  position: relative;
  height: 295px;
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  color: var(--navy);
  background: #d9dde1;
  border: 1px solid #c7cbd0;
  border-radius: 3px;
  display: grid;
  place-items: center;
  text-align: center;
}

.pdf-live-preview {
  isolation: isolate;
}

.pdf-live-preview canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.14);
}

.pdf-live-preview.preview-ready {
  background:
    linear-gradient(145deg, #d6dbe0, #eef0f2);
}

.pdf-live-preview.preview-placeholder {
  padding: 0;
  background: #e6e8ea;
}

.preview-placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.publication-thumbnail .preview-placeholder-image {
  object-fit: cover;
}

.preview-loading {
  min-height: 100%;
  padding: 18px;
  color: #5d6872;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .76rem;
}

.preview-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(6,20,34,.16);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: preview-spin .8s linear infinite;
}

.preview-error {
  min-height: 100%;
  padding: 20px;
  color: #6b747c;
  background: #eceff1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .74rem;
}

.preview-error strong {
  color: #303b45;
  font-size: .8rem;
}

@keyframes preview-spin {
  to { transform: rotate(360deg); }
}

.publication-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.publication-thumbnail {
  flex: 0 0 58px;
  width: 58px;
  height: 78px;
  overflow: hidden;
  border: 1px solid #c9cdd0;
  border-radius: 2px;
  background: #dfe3e6;
  display: grid;
  place-items: center;
}

.publication-thumbnail canvas {
  max-width: 100%;
  max-height: 100%;
  box-shadow: none;
}

.preview-loading-small {
  width: 100%;
  min-height: 100%;
  padding: 4px;
}

.preview-loading-small .preview-spinner {
  width: 17px;
  height: 17px;
}

.publication-title-text {
  min-width: 0;
}

/* Sections */
.section {
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-title-row {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 60px;
  align-items: end;
}

.section-title-row h2,
.about-section h2,
.contact-section h2 {
  margin: 0;
  font: 600 clamp(2.25rem, 5vw, 4rem)/1 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.section-title-row > p {
  max-width: 510px;
  margin: 0 0 3px;
  color: var(--muted);
}

/* Publication list */
.publication-table-wrap {
  border: 1px solid #d4d0c8;
  background: rgba(255,255,255,.36);
}

.publication-table-head,
.publication-item {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(100px, .7fr) 80px minmax(220px, .9fr);
  gap: 18px;
  align-items: center;
}

.publication-table-head {
  padding: 13px 18px;
  color: var(--muted);
  border-bottom: 1px solid #d4d0c8;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.publication-item {
  padding: 18px;
  border-bottom: 1px solid #dedad2;
}

.publication-item:last-child { border-bottom: 0; }

.publication-title h3 {
  margin: 0;
  font: 600 .96rem/1.35 "Manrope", sans-serif;
}

.publication-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.publication-type,
.publication-year {
  color: #4d5765;
  font-size: .82rem;
}

.publication-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.publication-actions .button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: .68rem;
}

.empty-publications {
  margin: 0;
  padding: 28px;
  color: var(--muted);
}

/* About */
.about-section { background: #f1eee7; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 58px;
  align-items: center;
}

.about-visual {
  min-height: 340px;
  color: rgba(255,255,255,.95);
  background:
    radial-gradient(circle at 35% 28%, rgba(220,175,107,.36), transparent 27%),
    linear-gradient(145deg, #1c3c54, #061422 68%);
  display: grid;
  place-items: center;
  border-radius: 3px;
}

.about-visual span {
  font: 600 clamp(4rem, 10vw, 8rem)/1 "Manrope", sans-serif;
  letter-spacing: -.08em;
}

.about-grid p:not(.eyebrow) {
  max-width: 650px;
  color: #4e5967;
  font-size: 1rem;
}

/* Contact + Footer */
.contact-section {
  color: var(--white);
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.contact-grid p:not(.eyebrow) { color: #c6d0d9; }

.contact-grid code { background: rgba(255,255,255,.1); }

.site-footer {
  padding: 26px max(20px, calc((100% - var(--max)) / 2));
  color: #b8c2cb;
  background: #04101c;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .78rem;
}

.site-footer a { color: #fff; }

/* PDF viewer */
.pdf-modal[hidden] { display: none; }

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  display: grid;
  place-items: center;
}

.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1,8,15,.86);
  backdrop-filter: blur(5px);
}

.viewer-shell {
  position: relative;
  width: min(1240px, 98vw);
  height: min(920px, 94vh);
  min-height: 0;
  color: var(--ink);
  background: #eef0f2;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,.42);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}

.viewer-header {
  min-width: 0;
  padding: 13px 16px 12px 19px;
  background: #fff;
  border-bottom: 1px solid #d4d8dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.viewer-title-wrap { min-width: 0; }

.viewer-kicker {
  margin: 0 0 2px;
  color: #7c8792;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.viewer-header h2 {
  margin: 0;
  overflow: hidden;
  font: 600 1rem/1.25 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-direct-link {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #9da7af;
  border-radius: 3px;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.viewer-close {
  width: 40px;
  height: 40px;
  border: 1px solid #9da7af;
  border-radius: 3px;
  color: var(--navy);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.viewer-toolbar {
  min-height: 52px;
  padding: 7px 13px;
  background: #132332;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.viewer-toolbar button {
  min-width: 40px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.viewer-toolbar button:hover { background: rgba(255,255,255,.12); }

.viewer-toolbar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.page-control {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
}

.page-control input {
  width: 54px;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  color: #fff;
  background: rgba(255,255,255,.08);
  text-align: center;
}

.toolbar-divider {
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: rgba(255,255,255,.2);
}

.zoom-label {
  min-width: 55px;
  text-align: center;
  font-size: .76rem;
}

.viewer-status {
  min-height: 32px;
  padding: 7px 14px;
  color: #5e6973;
  background: #f7f8f9;
  border-bottom: 1px solid #d4d8dc;
  font-size: .75rem;
}

.pdf-scroll-area {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background: #cbd1d6;
  overscroll-behavior: contain;
}

.pdf-pages {
  /*
    max-content permet au zoom de créer un vrai débordement horizontal.
    min-width:100% garde les pages centrées lorsqu'elles tiennent dans l'écran.
  */
  width: max-content;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pdf-page {
  position: relative;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0,0,0,.15);
}

.pdf-page canvas {
  /*
    Le ratio est piloté par les dimensions intrinsèques du canvas.
    Ne jamais fixer une hauteur CSS indépendante de la largeur.
  */
  width: 100%;
  height: auto !important;
  max-width: none;
  display: block;
}

.pdf-page-number {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 2px;
  color: #fff;
  background: rgba(6,20,34,.65);
  font-size: .62rem;
  pointer-events: none;
}

.pdf-fallback p {
  max-width: 850px;
  margin: 0 auto 10px;
  padding: 10px 12px;
  color: #4e5964;
  background: #fff;
  font-size: .78rem;
}

.pdf-fallback iframe {
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

/* Responsive */
@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  }

  .hero h1 {
    font-size: clamp(3.6rem, 7vw, 5.8rem);
  }

  .hero-portrait {
    right: -12px;
    width: auto;
    height: 505px;
    max-height: none;
  }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 8px 20px 20px;
    background: #061422;
    border-bottom: 1px solid rgba(255,255,255,.15);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 12px 0; }
  .main-nav a::after { bottom: 7px; }

  .hero,
  .hero-inner {
    min-height: 520px;
  }

  .hero-portrait-wrap {
    min-height: 520px;
    height: 520px;
  }

  .hero-inner {
    grid-template-columns: 1fr minmax(260px, .62fr);
  }

  .hero-content {
    padding: 58px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7.6vw, 4.8rem);
  }

  .hero-portrait {
    right: -20px;
    width: auto;
    height: 475px;
    max-height: none;
  }

  .overview-inner { grid-template-columns: 1fr; }

  .pdf-placeholder { height: 240px; }

  .section-title-row,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .publication-table-head { display: none; }

  .publication-item {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
  }

  .publication-title { grid-column: 1 / -1; }

  .publication-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero { min-height: 655px; }

  .hero-inner {
    min-height: 655px;
    display: block;
  }

  .hero-content {
    position: relative;
    z-index: 5;
    padding: 58px 0 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 15vw, 4.7rem);
    line-height: .94;
    white-space: normal;
  }

  .hero-copy {
    max-width: 92%;
    margin-top: 24px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 25px;
  }

  .hero-portrait-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 350px;
    height: 350px;
  }

  .hero-portrait {
    right: -55px;
    bottom: -1px;
    width: 355px;
    height: auto;
    max-height: none;
    opacity: .56;
  }

  .hero-portrait-halo {
    top: 10%;
    left: 75%;
    width: 300px;
    height: 300px;
  }

  .hero-shape-one {
    right: -8%;
    bottom: 18px;
  }


  .section-inner { padding: 62px 0; }

  .card-actions { grid-template-columns: 1fr; }

  .card-actions .single-action { grid-column: auto; }

  .publication-item { grid-template-columns: 1fr 1fr; }

  .pdf-modal { padding: 0; }

  .viewer-shell {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .viewer-header { padding: 10px; }

  .viewer-direct-link { display: none; }

  .viewer-toolbar {
    justify-content: flex-start;
    gap: 6px;
    padding: 7px 10px;
  }

  .viewer-toolbar button {
    min-width: 42px;
    min-height: 40px;
  }

  .page-control input {
    width: 50px;
  }

  .toolbar-divider { display: none; }

  .pdf-scroll-area { padding: 10px; }

  .pdf-fallback iframe { height: 650px; }

  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .preview-spinner { animation: none; }
}


/* ================================================================
   V7 — PAGE INSTAGRAM / PROFILS STATIQUES
   ================================================================ */
.main-nav .nav-current::after { transform: scaleX(1); }

.social-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 34%, rgba(116, 90, 53, .28), transparent 28%),
    linear-gradient(120deg, #061422 0%, #0b1e30 62%, #112b3d 100%);
}

.social-hero::after {
  position: absolute;
  right: -70px;
  bottom: -185px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(234, 215, 182, .18);
  border-radius: 50%;
  content: "";
}

.social-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  min-height: 390px;
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: center;
}

.social-hero h1 {
  margin: 0;
  font: 500 clamp(4rem, 8vw, 7rem)/.9 "Manrope", sans-serif;
  letter-spacing: -.065em;
}

.social-hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d8e0e6;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.social-hero-mark {
  width: 185px;
  height: 185px;
  border: 1px solid rgba(234,215,182,.45);
  display: grid;
  place-items: center;
  transform: rotate(7deg);
}

.social-hero-mark span {
  color: var(--cream);
  font: 500 4.3rem/1 "Manrope", sans-serif;
  letter-spacing: -.07em;
  transform: rotate(-7deg);
}

.social-showcase-section { background: #f8f5ef; }
.social-showcase-inner { padding-top: 64px; padding-bottom: 92px; }

.instagram-accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.instagram-account-card {
  min-width: 0;
  min-height: 250px;
  padding: 34px;
  border: 1px solid #d9d3c9;
  background: rgba(255,255,255,.48);
  display: flex;
  align-items: center;
  gap: 28px;
}

.instagram-avatar {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  display: block;
  object-fit: cover;
  border: 1px solid #cfc6b8;
  border-radius: 50%;
  background: #e9e3da;
}

.instagram-profile-copy { min-width: 0; }

.instagram-account-type {
  margin: 0 0 7px;
  color: #745a35;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.instagram-account-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font: 600 clamp(1.35rem, 2.2vw, 1.85rem)/1.05 "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.instagram-display-name {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.instagram-profile-link { display: inline-flex; white-space: nowrap; }

.instagram-photo-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 920px) {
  .instagram-account-card { padding: 26px; gap: 20px; }
  .instagram-avatar { flex-basis: 90px; width: 90px; height: 90px; }
}

@media (max-width: 840px) {
  .social-hero-inner { min-height: 350px; padding: 64px 0; }
  .social-hero-mark { width: 140px; height: 140px; }
  .social-hero-mark span { font-size: 3.4rem; }
  .instagram-accounts-grid { grid-template-columns: 1fr; gap: 22px; }
  .instagram-account-card { min-height: 0; }
}

@media (max-width: 620px) {
  .social-hero-inner { min-height: 330px; grid-template-columns: 1fr; padding: 58px 0 64px; }
  .social-hero-mark { position: absolute; right: -35px; bottom: -38px; width: 140px; height: 140px; opacity: .3; }
  .social-hero-copy { max-width: 86%; }
  .social-showcase-inner { padding-top: 46px; padding-bottom: 70px; }
  .instagram-account-card { padding: 22px; align-items: flex-start; }
  .instagram-avatar { flex-basis: 72px; width: 72px; height: 72px; }
}

@media (max-width: 430px) {
  .instagram-account-card { flex-direction: column; }
  .instagram-avatar { flex-basis: 84px; width: 84px; height: 84px; }
}


/* ================================================================
   VERSION 1.1 — navigation, langues, documents et réseaux sociaux
   ================================================================ */
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.main-nav { gap: 21px; }

.language-switch {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.58);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .045em;
}
.language-switch a {
  min-width: 25px;
  padding: 4px 3px;
  color: rgba(255,255,255,.72);
  text-align: center;
  text-decoration: none;
}
.language-switch a.active {
  color: var(--navy);
  background: var(--cream);
  border-radius: 2px;
}

/* Uniformise les trois CTA du hero. */
.hero-actions .button,
.hero-actions .linkedin-button {
  min-height: 44px;
  padding: 11px 17px;
  font-size: .78rem;
}
.linkedin-mark {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  font: 800 .76rem/1 Arial, sans-serif;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.card-actions .single-action { grid-column: 1 / -1; }

.thesis-language-label {
  min-height: 0 !important;
  margin: 4px 0 9px !important;
  color: var(--muted) !important;
  font-size: .69rem !important;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.thesis-actions .button { width: 100%; }
.thesis-lang-button.preferred-language { background: #0c2539; }

.documents-cta-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: -10px auto 0;
  padding: 0 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.documents-cta-copy { max-width: 760px; }
.documents-cta-copy p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }

.documents-hero .social-hero-mark span { font-size: 2.8rem; letter-spacing: -.04em; }

.social-hero-with-actions { grid-template-columns: minmax(0, 1fr) auto; }
.social-hero-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.header-linkedin {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 3px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
}
.header-linkedin:hover { background: rgba(255,255,255,.09); }
.header-linkedin .linkedin-mark { width: 17px; height: 17px; font-size: .68rem; }
.social-linkedin-button {
  min-height: 46px;
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}
.social-linkedin-button .linkedin-mark { color: var(--navy); }
.social-linkedin-button:hover { background: var(--cream); border-color: var(--cream); }
.instagram-section-heading { margin-bottom: 28px; }
.instagram-section-heading h2 { margin: 0; font: 600 clamp(2rem, 4vw, 3.2rem)/1 "Manrope", sans-serif; letter-spacing: -.045em; }

@media (max-width: 1180px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: .72rem; }
  .header-right { gap: 15px; }
}

@media (max-width: 920px) {
  .header-right { margin-left: auto; gap: 10px; }
  .menu-toggle { order: 3; }
  .language-switch { order: 2; }
  .main-nav { order: 1; }
  .documents-cta-wrap { align-items: flex-start; }
}

@media (max-width: 840px) {
  .social-hero-with-actions { grid-template-columns: 1fr auto; }
  .social-hero-side .social-hero-mark { width: 130px; height: 130px; }
}

@media (max-width: 620px) {
  .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .brand { font-size: .94rem; }
  .language-switch { min-height: 32px; padding: 2px 5px; }
  .header-linkedin { width: 34px; height: 32px; min-height: 32px; padding: 0; justify-content: center; }
  .header-linkedin > span:last-child { display: none; }
  .documents-cta-wrap { width: min(var(--max), calc(100% - 40px)); flex-direction: column; padding-bottom: 38px; }
  .documents-cta-wrap .button { width: 100%; }
  .social-hero-with-actions { grid-template-columns: 1fr; }
  .social-hero-side { position: static; width: max-content; margin-top: 12px; }
  .social-hero-side .social-hero-mark { display: none; }
  .social-linkedin-button { min-width: 180px; }
}


/* ================================================================
   VERSION 1.1.2 — pictogrammes et logique de langue des documents
   ================================================================ */

/* Les cartes gardent leurs actions alignées en bas malgré les notes. */
.document-card {
  display: flex;
  flex-direction: column;
}
.document-card .card-actions { margin-top: auto; }

.document-note {
  min-height: 32px !important;
  margin: 1px 0 10px !important;
  color: #707983 !important;
  font-size: .69rem !important;
  line-height: 1.45;
}

/* Remplace les monogrammes RS/DOC par des pictogrammes vectoriels. */
.social-hero-mark .hero-picto {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-7deg);
  opacity: .96;
}

/* La zone “Autres documents” conserve sa forme 1.1, avec une lisibilité renforcée. */
.documents-cta-wrap {
  margin-top: -2px;
  padding-bottom: 48px;
}
.documents-cta-copy .card-label {
  font-size: .7rem;
  letter-spacing: .095em;
}
.documents-cta-copy p:last-child {
  margin-top: 7px;
  color: #596574;
  font-size: .92rem;
  line-height: 1.55;
}

/* Sur la bibliothèque, le français est proposé en premier et mis en avant. */
.publication-actions .publication-language-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.publication-actions .publication-language-secondary {
  background: transparent;
  border-color: #94a0aa;
  color: var(--navy);
}
.publication-actions .publication-language-secondary:hover {
  background: rgba(6,20,34,.05);
}

@media (max-width: 620px) {
  .documents-cta-wrap { padding-bottom: 42px; }
  .social-hero-mark .hero-picto { width: 64px; height: 64px; }
}


/* ================================================================
   VERSION 1.1.3 — alignement des cartes, LinkedIn et contact global
   ================================================================ */

/* Les aperçus restent strictement centrés, quelle que soit la page PDF. */
.pdf-live-preview {
  display: grid;
  place-items: center;
  place-content: center;
}
.pdf-live-preview canvas,
.pdf-live-preview .preview-placeholder-image {
  margin: auto;
}

/* La note et les actions restent groupées au bas des cartes concernées. */
.document-card.has-document-note .document-note {
  min-height: 0 !important;
  margin: auto 0 4px !important;
}
.document-card.has-document-note .card-actions {
  margin-top: 0;
}

/* Contact : e-mail et LinkedIn avec une hiérarchie identique sur toutes les pages. */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-linkedin .linkedin-mark {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--navy);
  background: var(--white);
  border-radius: 2px;
  font: 800 .75rem/1 Arial, sans-serif;
}

/* Carte LinkedIn du hero Réseaux Sociaux, dérivée des cartes Instagram. */
.social-hero-with-actions {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}
.linkedin-hero-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(234,215,182,.42);
  background: rgba(255,255,255,.055);
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(5px);
}
.linkedin-hero-avatar {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(234,215,182,.62);
  border-radius: 50%;
  color: var(--cream);
  display: grid;
  place-items: center;
  font: 700 2rem/1 Arial, sans-serif;
  letter-spacing: -.05em;
}
.linkedin-hero-copy { min-width: 0; }
.linkedin-hero-type {
  margin: 0 0 5px;
  color: var(--cream);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.linkedin-hero-card h2 {
  margin: 0;
  color: var(--white);
  font: 600 1.25rem/1.1 "Manrope", sans-serif;
  letter-spacing: -.025em;
}
.linkedin-hero-copy > p:not(.linkedin-hero-type) {
  margin: 5px 0 14px;
  color: #cbd5dd;
  font-size: .8rem;
}
.linkedin-hero-link {
  min-height: 40px;
  padding: 8px 13px;
  font-size: .7rem;
}

@media (max-width: 920px) {
  .social-hero-with-actions { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
  .linkedin-hero-card { padding: 20px; gap: 16px; }
  .linkedin-hero-avatar { flex-basis: 64px; width: 64px; height: 64px; font-size: 1.65rem; }
}

@media (max-width: 760px) {
  .social-hero-with-actions { grid-template-columns: 1fr; }
  .linkedin-hero-card { width: min(100%, 390px); margin-top: 4px; }
}

@media (max-width: 620px) {
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .linkedin-hero-card { padding: 18px; }
}


/* ================================================================
   VERSION 1.1.4 — notes de langue et aperçus PDF plus sobres
   ================================================================ */

/* Les trois notes occupent une hauteur cohérente : les boutons restent alignés,
   avec un léger espace volontaire entre la note et les actions. */
.document-card.has-document-note .document-note {
  min-height: 42px !important;
  margin: auto 0 10px !important;
  display: flex;
  align-items: flex-end;
}
.document-card.has-document-note .card-actions {
  margin-top: 0;
}

/* Les marges grises autour des pages sont remplacées par un fond chaud très léger
   et une bordure crème issue de la palette du site. */
.pdf-placeholder,
.pdf-live-preview.preview-ready,
.pdf-live-preview.preview-placeholder {
  background: var(--paper);
  border-color: var(--cream);
}
.pdf-live-preview.preview-ready {
  background-image: none;
}
.pdf-live-preview canvas {
  box-shadow: 0 2px 10px rgba(6,20,34,.08);
}

/* Même traitement dans la visionneuse plein écran. */
.viewer-shell {
  background: var(--paper);
  border: 1px solid var(--cream);
}
.viewer-header,
.viewer-status {
  border-color: var(--cream);
}
.pdf-scroll-area {
  background: #f1eee7;
}
.pdf-page {
  box-shadow: 0 3px 14px rgba(6,20,34,.10);
}

@media (max-width: 620px) {
  .document-card.has-document-note .document-note {
    min-height: 0 !important;
    margin-bottom: 9px !important;
  }
}


/* ================================================================
   VERSION 1.1.4.1 — positionnement uniforme des notes de langue
   ================================================================ */

/* La zone de note a une hauteur identique sur les trois cartes et le texte
   est centré verticalement entre l’aperçu et les boutons. */
.document-card.has-document-note .document-note {
  min-height: 58px !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}
.document-card.has-document-note .card-actions {
  margin-top: 0;
}

@media (max-width: 620px) {
  .document-card.has-document-note .document-note {
    min-height: 52px !important;
    margin: 0 !important;
  }
}


/* ================================================================
   VERSION 1.1.4.2 — micro-ajustement des annotations
   ================================================================ */

/* Sur les cartes annotées, on neutralise la marge basse de l’aperçu :
   la note est ainsi centrée à distance égale entre le visuel et le bouton. */
.document-card.has-document-note .pdf-placeholder {
  margin-bottom: 0;
}

.document-card.has-document-note .document-note {
  min-height: 58px !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

@media (max-width: 620px) {
  .document-card.has-document-note .document-note {
    min-height: 52px !important;
  }
}

/* ================================================================
   VERSION 1.1.4.4 — pied de page global, bibliothèque par sections
   ================================================================ */

/* Pied de page : reprise de toute la navigation du header. */
.site-footer {
  padding: 0;
  display: block;
  color: #b8c2cb;
  background: #04101c;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: .78rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.footer-topline {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: var(--white) !important;
  font: 600 1rem/1 "Manrope", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
}

.footer-topline p {
  margin: 0;
  color: #8795a1;
  font-size: .76rem;
}

.footer-nav {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-nav a {
  position: relative;
  color: #d6dde3 !important;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease;
}

.footer-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--white) !important; }
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after { transform: scaleX(1); }

.footer-bottomline {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottomline a {
  color: var(--white) !important;
  text-decoration: none;
}

/* Page Documents : trois familles clairement séparées sans changer
   la logique des tableaux et boutons déjà utilisée sur le site. */
.documents-library-section { background: #f8f5ef; }

.document-library-sections {
  display: grid;
  gap: 54px;
}

.document-library-group {
  min-width: 0;
}

.document-library-heading {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 48px;
  align-items: end;
}

.document-library-heading h3 {
  margin: 0;
  font: 600 clamp(1.55rem, 3vw, 2.35rem)/1.05 "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.document-library-heading > p {
  max-width: 520px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.document-library-group + .document-library-group {
  padding-top: 46px;
  border-top: 1px solid #d8d4cc;
}

.document-library-group .empty-publications {
  min-height: 92px;
  display: flex;
  align-items: center;
  color: #707983;
  font-style: italic;
}

@media (max-width: 840px) {
  .document-library-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .document-library-sections { gap: 44px; }
  .document-library-group + .document-library-group { padding-top: 38px; }
}

@media (max-width: 620px) {
  .footer-inner { width: min(var(--max), calc(100% - 32px)); padding: 30px 0 22px; }
  .footer-topline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; }
  .footer-bottomline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .document-library-group + .document-library-group { padding-top: 32px; }
}
