/* =========================================================
   Portfolio : velours bordeaux, champagne et sceau doré
   ========================================================= */

/* ----- Couleurs (thème clair par défaut) ----- */
:root {
  --bg: #F6EFE6;
  --surface: #EDE0CF;
  --nude: #D8B98A;
  --sage: #A8844C;
  --sage-deep: #5A0F1B;
  --ink: #2A0A10;
  --muted: #6E4B4F;
  --line: #DCC8B1;
  --code-bg: #2A0508;
  --code-ink: #F1E4D3;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ----- Thème sombre (automatique ou choisi) ----- */
:root[data-theme="dark"] {
  --bg: #1A0508; --surface: #2A0A10; --nude: #6B4A2E; --sage: #C9A56A; --sage-deep: #E6C9A8;
  --ink: #F1E4D3; --muted: #C9AFA0; --line: #4A1A20; --code-bg: #120304;
  color-scheme: dark;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: inherit; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: var(--sage-deep); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--sage-deep); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; z-index: 30; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .5rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ----- Navigation ----- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1rem; position: relative; }
.mono-mark { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.5rem; color: var(--sage-deep); text-decoration: none; margin-right: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav ul a:hover { color: var(--ink); }
.theme, .menu { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; height: 2.2rem; cursor: pointer; font: inherit; font-size: .95rem; }
.theme { width: 2.2rem; flex: none; }
.menu { display: none; padding: 0 .9rem; }

@media (max-width: 760px) {
  .menu { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: .6rem 0; font-size: 1.05rem; }
}

/* ----- Structure des sections ----- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; margin-bottom: 2.5rem; align-items: end; }
.sec-head h2 { font-size: clamp(2.3rem, 5vw, 3.2rem); color: var(--sage-deep); }
.sec-head p { color: var(--muted); max-width: 60ch; margin: 0; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: .75rem; } }

/* ----- Accueil : velours bordeaux sur toute la largeur ----- */
.hero { position: relative; isolation: isolate; padding: 5rem 0 5.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; color: #F1E4D3; }
.hero::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 30% 40%, rgba(160, 20, 40, .55), transparent 70%),
    radial-gradient(ellipse 60% 80% at 85% 70%, rgba(110, 10, 25, .6), transparent 70%),
    linear-gradient(160deg, #4A0712 0%, #2A0508 100%);
}
.hero::after { /* rayures bordeaux et crème sous l’accueil */
  content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: -14px; height: 14px;
  background: repeating-linear-gradient(90deg, #5A0F1B 0 22px, #EDE0CF 22px 44px);
}
.seal {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.6rem;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.6rem; color: #5A3A14;
  background: radial-gradient(circle at 35% 30%, #F3DDA6, #C9A56A 45%, #8C6630 100%);
  box-shadow: inset 0 0 0 4px rgba(90, 58, 20, .25), inset 0 0 0 7px rgba(243, 221, 166, .5), 0 6px 18px rgba(0, 0, 0, .35);
  transform: rotate(-8deg);
}
.hero .role { color: #D9B77A; font-weight: 500; letter-spacing: .03em; margin-bottom: .8rem; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7rem); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: .95; color: #F6EFE6; }
.hero h1 span { display: block; }
.hero .lead { font-size: 1.2rem; max-width: 44ch; margin-top: 1.6rem; color: #EADBC8; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 500; border: 1px solid var(--sage-deep); }
.btn.primary { background: var(--sage-deep); color: var(--bg); }
.btn.ghost { color: var(--sage-deep); }
.hero .btn.primary { background: #C9A56A; border-color: #C9A56A; color: #2A0508; }
.hero .btn.ghost { color: #F1E4D3; border-color: rgba(241, 228, 211, .6); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 3.5rem; } }

/* Encart « le code / le rendu » */
.studio { background: rgba(246, 239, 230, .08); border-radius: 28px 28px 28px 4px; padding: 1rem; border: 1px solid rgba(217, 183, 122, .35); }
.studio-tabs { display: flex; gap: .4rem; margin-bottom: .8rem; }
.studio-tabs button { font: inherit; font-size: .9rem; border: 1px solid rgba(241, 228, 211, .35); background: transparent; color: #EADBC8; padding: .35rem .9rem; border-radius: 999px; cursor: pointer; }
.studio-tabs button[aria-selected="true"] { background: #C9A56A; color: #2A0508; border-color: #C9A56A; }
.studio-cap { font-size: .85rem; color: #D8C3B0; margin: .8rem .3rem 0; }
.pane { min-height: 250px; border-radius: 18px; overflow: hidden; }
.pane[hidden] { display: none; }
.code { background: var(--code-bg); color: var(--code-ink); font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.7; padding: 1.2rem; overflow-x: auto; margin: 0; white-space: pre; }
.code .t { color: #D9B77A; } .code .a { color: #E8B9A3; } .code .s { color: #F6DFC2; } .code .c { color: #A88C86; }
.render { background: #F6EFE6; padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: .9rem; color: #2E1A1C; }
.render .card { background: #fff; border-radius: 16px; padding: 1.2rem 1.3rem; box-shadow: 0 1px 0 #D8B98A; }
.render .card-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.7rem; color: #5A0F1B; margin: 0; }
.render .card p:last-child { margin: .3rem 0 0; font-size: .95rem; color: #6F5A5A; }
.sw { display: flex; gap: .5rem; }
.sw i { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: block; }
.sw1 { background: #5A0F1B; } .sw2 { background: #8E1B2C; } .sw3 { background: #C9A56A; } .sw4 { background: #EDE0CF; border: 1px solid #D8B98A; }

/* ----- À propos ----- */
.about { max-width: 68ch; }
.about.with-photo { max-width: none; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.about.with-photo .prose { max-width: 68ch; }
.photo { border-radius: 24px 24px 24px 4px; object-fit: cover; aspect-ratio: 4 / 5; width: 100%; }
@media (max-width: 680px) { .about.with-photo { grid-template-columns: 1fr; } .photo { max-width: 260px; } }

/* ----- Parcours ----- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline .when { color: var(--sage-deep); font-weight: 600; }
.timeline h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.timeline p { max-width: 62ch; color: var(--muted); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

/* ----- Compétences ----- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.skill { padding-top: 1.2rem; border-top: 3px solid var(--sage); }
.skill:nth-child(3n+2) { border-top-color: var(--nude); }
.skill:nth-child(3n) { border-top-color: var(--sage-deep); }
.skill h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.skill .kind { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }

/* ----- Réalisations ----- */
.projects { display: grid; gap: 1rem; }
.proj { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); }
.proj summary { list-style: none; cursor: pointer; padding: 1.5rem 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.proj summary::-webkit-details-marker { display: none; }
.proj summary h3 { font-size: 1.7rem; }
.proj .tag { color: var(--sage-deep); font-size: .92rem; margin: .25rem 0 0; }
.plus { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s; }
.proj[open] .plus { transform: rotate(45deg); }
.proj-body { padding: 0 1.6rem 1.6rem; }
.proj-body > p { max-width: 65ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.5rem; margin: 1.2rem 0; }
.facts h4 { margin: 0 0 .25rem; font-size: .95rem; font-weight: 600; }
.facts p { margin: 0 0 .5em; color: var(--muted); font-size: .97rem; }
.shot { display: block; margin: 1.2rem 0; border-radius: 16px; border: 1px solid var(--line); }

/* ----- Tableau de synthèse ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .97rem; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface); font-weight: 600; }
tbody th { font-weight: 400; }
tbody tr:last-child > * { border-bottom: none; }
.c { text-align: center; }
td.c { color: var(--sage-deep); font-size: 1.1rem; }

/* ----- Veille ----- */
.sec-head > p:only-of-type { margin: 0; }
.veille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.veille.single { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.topics { list-style: none; margin: 0; padding: 0; }
.topics li { padding: 1rem 0; border-top: 1px solid var(--line); }
.topics strong { display: block; font-weight: 600; }
.topics span { color: var(--muted); }
.sources { background: var(--surface); border-radius: 22px; padding: 1.5rem; }
.sources h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.src { padding: 1rem 0; border-top: 1px solid var(--line); }
.src:first-of-type { border-top: none; padding-top: 0; }
.src h4 { font-weight: 600; font-size: 1rem; }
.src .meta { color: var(--muted); font-size: .9rem; margin: .1rem 0 .4rem; }
.src p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .veille { grid-template-columns: 1fr; } }

/* ----- Qualités ----- */
.qualities { display: flex; flex-wrap: wrap; gap: .75rem; }
.q { border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem; background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); }
.q[aria-pressed="true"] { background: var(--sage-deep); color: var(--bg); border-color: var(--sage-deep); }
.q-detail { margin-top: 1.3rem; font-size: 1.45rem; font-style: italic; max-width: 55ch; min-height: 2em; font-family: "Cormorant Garamond", Georgia, serif; color: var(--sage-deep); }

/* ----- Objectifs ----- */
.goal { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--sage-deep); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.35; max-width: 30ch; }
.goal-sub { margin-top: 1.5rem; color: var(--muted); max-width: 62ch; }

/* ----- Contact ----- */
#contact { border-bottom: none; }
.contact { background: radial-gradient(ellipse 80% 120% at 20% 20%, rgba(160, 20, 40, .5), transparent 70%), linear-gradient(160deg, #4A0712, #2A0508); color: #F6EFE6; border-radius: 32px 32px 32px 6px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); }
.contact p { opacity: .9; max-width: 42ch; margin-top: 1rem; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; align-content: start; }
.contact-links span { display: block; font-size: .9rem; opacity: .75; }
.contact-links a { color: #F6EFE6; font-weight: 500; }
.contact h2 { color: #D9B77A; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.footer { padding: 2rem 1.25rem 3rem; color: var(--muted); font-size: .9rem; }

/* ----- Détail d’une réalisation ----- */
.subs, .docs { margin: 1.2rem 0; }
.subs h4, .docs h4 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; }
.sub-block { color: var(--sage-deep); font-weight: 600; font-size: .95rem; margin: .6rem 0 .2rem; }
.subs ul, .docs ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .97rem; }

/* ----- Tableau de synthèse officiel ----- */
.synth-print-title, .print-only { display: none; }
.candidat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.candidat dt { font-size: .85rem; color: var(--muted); }
.candidat dd { margin: 0; font-weight: 500; min-height: 1.6em; overflow-wrap: anywhere; }
table.synth { min-width: 900px; font-size: .92rem; }
.synth thead th { font-size: .85rem; line-height: 1.3; vertical-align: bottom; }
.synth thead small { font-weight: 400; color: var(--muted); }
.synth .col-real { width: 30%; }
.synth .col-period { width: 12%; }
.synth .col-comp { width: 9.6%; }
.synth tbody th { font-weight: 500; }
.synth tr.cat th { background: var(--surface); color: var(--sage-deep); font-weight: 600; font-size: .9rem; }
.synth .empty { color: var(--muted); font-style: italic; }
.doc-list { margin: .4rem 0 0; padding-left: 1.1rem; font-weight: 400; color: var(--muted); font-size: .88rem; }
.synth tbody:last-of-type tr:last-child > * { border-bottom: none; }
tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.synth-actions { margin-top: 1rem; }
.synth-actions .btn { background: transparent; font: inherit; font-weight: 500; cursor: pointer; }
.referentiel { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.referentiel summary { cursor: pointer; font-weight: 600; color: var(--sage-deep); }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.2rem; }
.ref-grid h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.ref-grid ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }

/* ----- Impression du tableau seul ----- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #f1f1f1; --ink: #000; --muted: #333; --line: #888; --sage-deep: #000;
    color-scheme: light; padding: 0;
  }
  html.print-synthese .nav, html.print-synthese .footer, html.print-synthese .skip,
  html.print-synthese main > section:not(#synthese),
  html.print-synthese #synthese .sec-head, html.print-synthese .synth-actions,
  html.print-synthese .referentiel { display: none !important; }
  html.print-synthese #synthese { padding: 0; border: none; }
  .hero::before, .hero::after { display: none; }
  html.print-synthese .synth-print-title { display: block; text-align: center; margin-bottom: 4mm; }
  html.print-synthese .synth-print-title p { margin: 0; font-size: 10pt; }
  html.print-synthese .synth-print-title .big { font-size: 14pt; font-weight: 600; }
  html.print-synthese .print-only { display: block; }
  html.print-synthese .candidat { grid-template-columns: repeat(5, 1fr); font-size: 9pt; margin-bottom: 4mm; }
  html.print-synthese .table-wrap { overflow: visible; border: 1px solid #000; border-radius: 0; }
  html.print-synthese table.synth { min-width: 0; font-size: 8.5pt; }
  html.print-synthese .synth th, html.print-synthese .synth td { border: 1px solid #000; padding: 2mm; }
  html.print-synthese .synth tr { break-inside: avoid; }
  body { font-size: 10pt; }
}


/* =========================================================
   Nouvelle direction artistique — éditorial bordeaux & crème
   Inspirée de la référence fournie : titre condensé, photo héro,
   accents manuscrits et panneaux façon magazine.
   ========================================================= */
:root {
  --bg: #fdfcfb; --surface: #f5eeee; --nude: #d9b7ba; --sage: #7a1727;
  --sage-deep: #5a0f1b; --ink: #24191a; --muted: #716365; --line: #e6d6d8;
  --code-bg: #4a0b16; --code-ink: #fff8f6; color-scheme: light;
}
:root[data-theme="dark"] { --bg:#1a0a0d; --surface:#26111a; --nude:#6b3a42; --sage:#e3b8be; --sage-deep:#f1d8dc; --ink:#f6efe6; --muted:#c9afb2; --line:#3e2025; --code-bg:#0f0406; --code-ink:#f1e4d3; color-scheme:dark; }
body { font-family:"DM Sans",system-ui,sans-serif; background:var(--bg); color:var(--ink); }
h1,h2,h3,h4 { font-family:"Oswald",Impact,sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:-.025em; }
.nav { background:rgba(253,252,251,.96); border-bottom:1px solid #eadfe0; backdrop-filter:blur(12px); }
.nav-in { max-width:1320px; padding:1rem 2rem; }
.mono-mark { font-family:"Oswald",sans-serif; text-transform:uppercase; letter-spacing:.08em; font-size:1.35rem; }
.nav ul a { font-size:.76rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.wrap { max-width:1320px; padding:0 2rem; }
.hero { min-height:640px; padding:4.2rem 3rem 4.5rem; margin:1.5rem 0 3.5rem; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:2rem; color:#5a0f1b; background:#fff; border:1px solid #eadbdd; box-shadow:0 18px 55px rgba(90,15,27,.07); overflow:hidden; }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(115deg,#fff 0%,#fff 58%,#f8eeee 100%); }
.hero::after { display:none; }
.hero .role { color:#7a1727; font-size:.78rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; margin-bottom:1.1rem; }
.hero h1 { color:#5a0f1b; font-size:clamp(4.3rem,8vw,8.4rem); line-height:.88; letter-spacing:-.045em; margin:0; }
.hero h1 span { display:block; }
.hero h1 .hero-name { font-size:.62em; letter-spacing:.005em; }
.hero h1 .hero-last { font-size:1em; }
.hero-script { color:#171314; font-family:"Caveat",cursive; font-size:clamp(3.5rem,6vw,6.2rem); line-height:.75; margin:-.1rem 0 1.5rem 5.5rem; transform:rotate(-5deg); position:relative; z-index:2; }
.hero .lead { max-width:42ch; color:#645456; font-size:1.03rem; margin-top:1.4rem; }
.hero .btn.primary { background:#5a0f1b; border-color:#5a0f1b; color:#fff; border-radius:2px; }
.hero .btn.ghost { color:#5a0f1b; border-color:#b98d94; border-radius:2px; }
.hero-portrait-wrap { align-self:stretch; min-height:430px; position:relative; display:flex; align-items:center; justify-content:center; }
.hero-portrait { position:relative; z-index:1; display:block; width:min(100%,450px); height:520px; object-fit:cover; object-position:center 35%; border-radius:2px; filter:saturate(.96); }
.portrait-frame { position:absolute; width:min(88%,420px); height:84%; right:0; top:8%; border:1px solid #8b3442; transform:rotate(4deg); }
.portrait-caption { position:absolute; z-index:2; left:0; bottom:1.5rem; background:#5a0f1b; color:white; padding:.8rem 1rem; font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; margin:0; }
.portrait-caption span { color:#e3b8be; padding:0 .25rem; }
.portrait-index { position:absolute; right:0; top:1rem; color:#5a0f1b; font-family:"Oswald",sans-serif; font-size:.75rem; letter-spacing:.14em; }
.hero-social-note { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.7rem; border-top:1px solid #e8d8da; padding-top:1rem; margin-top:2.5rem; color:#7b6266; font-size:.62rem; font-weight:700; letter-spacing:.1em; }
section:not(.hero) { scroll-margin-top:90px; }
section:not(.hero) h2 { color:#5a0f1b; }
.card,.project-card,.skill-card,.timeline-item,.panel,.synthese-card { border-radius:3px !important; }
.btn { border-radius:2px; letter-spacing:.04em; text-transform:uppercase; font-size:.76rem; font-weight:700; }
footer { border-top-color:#eadbdd; }
@media (max-width:860px) {
 .wrap { padding:0 1rem; } .nav-in { padding:.8rem 1rem; }
 .hero { grid-template-columns:1fr; padding:2.5rem 1.25rem 2rem; margin-top:.75rem; gap:1rem; }
 .hero h1 { font-size:clamp(4rem,17vw,7rem); }
 .hero-script { margin-left:3rem; }
 .hero-portrait-wrap { min-height:340px; margin-top:1rem; }
 .hero-portrait { height:min(115vw,490px); max-width:390px; }
 .portrait-frame { right:5%; width:85%; }
 .portrait-caption { left:0; bottom:1rem; }
 .hero-social-note { margin-top:1.5rem; }
}
@media (max-width:480px) { .hero h1 .hero-name { font-size:.65em; } .hero h1 .hero-last { font-size:.82em; } .hero-portrait-wrap { min-height:300px; } .hero-portrait { height:370px; } }


/* Galerie des créations graphiques */
.design-gallery-section { padding-top: 2rem; }
.design-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.2rem; align-items:stretch; }
.design-item { margin:0; min-width:0; background:#fff; border:1px solid #eadbdd; box-shadow:0 10px 28px rgba(90,15,27,.06); display:flex; flex-direction:column; }
.design-item a { display:flex; align-items:center; justify-content:center; overflow:hidden; background:#f7f1f1; min-height:220px; aspect-ratio:4/3; }
.design-item img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.design-item a:hover img { transform:scale(1.035); }
.design-item-featured { grid-row:span 2; }
.design-item-featured a { aspect-ratio:3/4; height:calc(100% - 0px); }
.design-item-featured img { object-fit:contain; background:#3b080f; }
.design-item figcaption { padding:1rem 1.1rem 1.2rem; }
.design-item figcaption span { display:block; color:#8b3442; text-transform:uppercase; font-size:.65rem; font-weight:700; letter-spacing:.13em; margin-bottom:.35rem; }
.design-item figcaption strong { display:block; font-family:"Oswald",Impact,sans-serif; text-transform:uppercase; font-size:1.15rem; color:#5a0f1b; }
.design-item figcaption p { color:#716365; font-size:.88rem; margin:.4rem 0 0; }
@media(max-width:850px) { .design-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; } .design-item-featured { grid-row:auto; } .design-item-featured a { aspect-ratio:4/3; } }
@media(max-width:520px) { .design-gallery { grid-template-columns:1fr; } .design-item a,.design-item-featured a { aspect-ratio:4/3; min-height:0; } }


/* Accessibilité : titre de contact lisible sur le fond bordeaux */
#contact .contact h2 { color: #F6EFE6 !important; font-weight: 800; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
#contact .contact p { color: #F6EFE6; opacity: 1; }
#contact .contact-links span { color: #F1D8DC; opacity: 1; }
#contact .contact-links a { color: #FFFFFF; text-decoration-thickness: 2px; text-underline-offset: 3px; }
#contact .contact-links a:focus-visible { outline: 3px solid #F6EFE6; outline-offset: 4px; }


/* =========================================================
   Mode sombre de la direction artistique bordeaux & crème
   (accueil, menu et galerie ont des couleurs écrites en dur)
   ========================================================= */
:root[data-theme="dark"] .nav { background:rgba(26,10,13,.94); border-bottom-color:var(--line); }
:root[data-theme="dark"] .hero { color:var(--ink); background:#220d12; border-color:var(--line); box-shadow:0 18px 55px rgba(0,0,0,.45); }
:root[data-theme="dark"] .hero::before { background:linear-gradient(115deg,#200b10 0%,#200b10 58%,#2e1219 100%); }
:root[data-theme="dark"] .hero .role { color:#e3b8be; }
:root[data-theme="dark"] .hero h1 { color:#f6efe6; }
:root[data-theme="dark"] .hero-script { color:#f6efe6; }
:root[data-theme="dark"] .hero .lead { color:#d4c2c4; }
:root[data-theme="dark"] .hero .btn.primary { background:#f1d8dc; border-color:#f1d8dc; color:#3b080f; }
:root[data-theme="dark"] .hero .btn.ghost { color:#f1d8dc; border-color:#8b5a62; }
:root[data-theme="dark"] .portrait-frame { border-color:#c9a14a; }
:root[data-theme="dark"] .portrait-index { color:#e3b8be; }
:root[data-theme="dark"] .hero-social-note { border-top-color:var(--line); color:#b89a9e; }
:root[data-theme="dark"] section:not(.hero) h2 { color:#f1d8dc; }
:root[data-theme="dark"] footer { border-top-color:var(--line); }
:root[data-theme="dark"] .design-item { background:#220d12; border-color:var(--line); box-shadow:0 10px 28px rgba(0,0,0,.35); }
:root[data-theme="dark"] .design-item a { background:#2a1217; }
:root[data-theme="dark"] .design-item figcaption span { color:#e3b8be; }
:root[data-theme="dark"] .design-item figcaption strong { color:#f1d8dc; }
:root[data-theme="dark"] .design-item figcaption p { color:var(--muted); }



/* =========================================================
   Mise à jour : deux couleurs, bilingue, étoiles, langues,
   CV intégré
   ========================================================= */

/* ----- Site bilingue : seule la langue choisie est affichée ----- */
html:not([data-lang="en"]) .l-en, html:not([data-lang="en"]) l-en { display: none !important; }
html[data-lang="en"] .l-fr, html[data-lang="en"] l-fr { display: none !important; }
.proj-body > .l-fr > p, .proj-body > .l-en > p { max-width: 65ch; }

/* ----- Bouton de langue FR / EN (à côté du bouton clair / sombre) ----- */
.lang {
  display: inline-flex; align-items: center; gap: .1rem; flex: none; height: 2.2rem; padding: 0 .25rem;
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .06em; cursor: pointer;
}
.lang span { padding: .22rem .55rem; border-radius: 999px; opacity: .6; }
html:not([data-lang="en"]) .lang .lang-fr,
html[data-lang="en"] .lang .lang-en { background: var(--sage-deep); color: var(--bg); opacity: 1; }

/* ----- Menu : le nombre de rubriques a augmenté, le menu compact démarre plus tôt ----- */
@media (max-width: 1260px) {
  .menu { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 2rem 1rem; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: .6rem 0; }
}
@media (max-width: 860px) { .nav ul { padding-left: 1rem; padding-right: 1rem; } }

/* ----- Palette à deux couleurs : bordeaux + fond clair ----- */
.skill, .skill:nth-child(3n+2), .skill:nth-child(3n) { border-top-color: var(--sage-deep); }
.design-item figcaption span { color: var(--sage-deep); }
.portrait-frame { border-color: var(--sage-deep); }
:root[data-theme="dark"] .portrait-frame { border-color: var(--sage-deep); }
:root[data-theme="dark"] .design-item figcaption span { color: var(--sage-deep); }

/* ----- Étoiles de niveau ----- */
.skill .kind, .lang-card .kind { margin-bottom: .5rem; }
.stars { display: flex; align-items: center; gap: .15rem; margin: 0 0 .8rem; font-size: 1.2rem; line-height: 1; }
.star { color: var(--nude); }
.star.on { color: var(--sage-deep); }
.stars-n { margin-left: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }

/* ----- Langues ----- */
.langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 760px; }
.lang-card { padding-top: 1.2rem; border-top: 3px solid var(--sage-deep); }
.lang-card h3 { font-size: 1.6rem; margin-bottom: .2rem; }

/* ----- CV intégré ----- */
.cv-box { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.cv-preview { display: block; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(90, 15, 27, .1); }
.cv-preview img { display: block; width: 100%; height: auto; }
.cv-frame { display: block; width: 100%; height: min(80vh, 760px); border: 1px solid var(--line); background: #fff; }
.cv-side p { color: var(--muted); max-width: 42ch; }
.cv-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .cv-box { grid-template-columns: 1fr; gap: 1.5rem; } .cv-preview { max-width: 440px; } }


/* =========================================================
   Avis des visiteurs (formulaire + liste)
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avis-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 2.5rem; align-items: start; }
.avis-form { display: grid; gap: 1.1rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--sage-deep); }
.avis-form h3 { margin: 0; font-size: 1.5rem; }
.avis-field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.avis-field label, .avis-field legend { font-weight: 600; font-size: .9rem; color: var(--ink); padding: 0; }
.avis-field small { color: var(--muted); font-size: .8rem; }
.avis-field input[type="text"], .avis-field textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px;
}
.avis-field textarea { resize: vertical; min-height: 7.5rem; }
.avis-field input[type="text"]:focus-visible, .avis-field textarea:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 1px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { font-size: 2rem; line-height: 1; cursor: pointer; color: var(--nude); padding: 0 .1rem; transition: color .15s ease, transform .15s ease; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: var(--sage-deep); }
.rate-stars label:hover { transform: scale(1.12); }
.rate-stars input:focus-visible + label { outline: 3px solid var(--sage-deep); outline-offset: 2px; border-radius: 4px; }
.avis-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avis-form .btn { justify-self: start; }
.avis-note { margin: 0 0 1.6rem; padding: .85rem 1.1rem; border-left: 4px solid var(--sage-deep); background: var(--surface); font-weight: 600; }
.avis-note.err { border-left-color: #b3261e; }
.avis-list { display: grid; gap: 1rem; }
.avis-card { padding: 1.1rem 1.3rem; background: var(--bg); border: 1px solid var(--line); }
.avis-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.avis-card header strong { font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.avis-card time { color: var(--muted); font-size: .82rem; }
.avis-card .stars { margin: .3rem 0 .5rem; }
.avis-text { margin: 0; color: var(--ink); overflow-wrap: anywhere; max-width: 65ch; }
.avis-empty { margin: 0; color: var(--muted); padding: 1.4rem; border: 1px dashed var(--line); }
@media (max-width: 860px) { .avis-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { .rate-stars label { transition: none; } }
