/* Identité et fondations */
:root {
  --paper: #f4f2ec;
  --ink: #172625;
  --muted: #495b57;
  --copper: #a1462f;
  --rule: #c8cec5;
  --dark: #172b29;
  --light: #f6f3eb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5.4vw, 6rem);
  --section-space: clamp(4.5rem, 8vw, 8rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
button, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; }
.frame { width: min(100% - var(--gutter) * 2, 90rem); margin-inline: auto; }
.section { padding-block: var(--section-space); scroll-margin-top: 1rem; }
.skip { position: absolute; z-index: 5; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--light); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* En-tête et navigation */
.masthead { border-top: 4px solid var(--ink); }
.masthead-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 1.65rem/1 var(--serif); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 1.2rem; height: 1.2rem; flex-shrink: 0; background: var(--copper); clip-path: polygon(0 0, 17% 0, 51% 77%, 85% 0, 100% 0, 51% 100%); }
.navigation { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); font-size: .94rem; }
.navigation a, .top-link { text-decoration: none; }
.navigation a:hover, .top-link:hover { text-decoration: underline; }
.nav-contact { padding: .6rem 1.15rem; border: 1px solid var(--rule); }
.menu-toggle { border: 1px solid var(--rule); padding: .4rem .8rem; color: var(--ink); background: transparent; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(34rem, 45vw, 46rem); margin-top: 1.35rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--rule); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2.5rem, 5vw, 5.25rem) clamp(1.5rem, 4vw, 4.5rem) clamp(2.5rem, 5vw, 5.25rem) 0; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { width: 1.7rem; height: 1px; background: var(--copper); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.5rem, 7vw, 7.5rem); line-height: .96; letter-spacing: -.075em; margin-block: 1.4rem 1.55rem; }
h1 em { color: var(--copper); font-weight: 400; }
h2 { font-size: clamp(2.55rem, 4.65vw, 5rem); letter-spacing: -.055em; line-height: 1.02; margin-top: 1rem; }
h3 { font-size: 1.85rem; line-height: 1.16; letter-spacing: -.025em; }
.hero-intro { max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.2rem); margin-bottom: 1.75rem; }
.hero-media { position: relative; min-height: 100%; overflow: hidden; background: #34423e; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; animation: settle 1s ease-out both; }
.entrance { animation: arrive .65s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: .6; transform: scale(1.025); } to { opacity: 1; transform: none; } }

/* Composants */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.25rem; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.button-dark { background: var(--dark); color: var(--light); }
.button-dark:hover { background: #314b46; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-outline:hover { border-color: var(--ink); }
.split { display: grid; grid-template-columns: .92fr 1.08fr; align-items: start; gap: clamp(2rem, 6vw, 7rem); }
.expertise-list { border-top: 1px solid var(--rule); }
.expertise-list details { border-bottom: 1px solid var(--rule); }
.expertise-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem .15rem; cursor: pointer; list-style: none; font: clamp(1.25rem, 2.15vw, 1.8rem)/1.2 var(--serif); }
.expertise-list summary::-webkit-details-marker { display: none; }
.expertise-list summary::after { content: ""; flex: 0 0 1rem; width: 1rem; height: 1rem; background: linear-gradient(var(--copper), var(--copper)) center / 100% 1px no-repeat, linear-gradient(var(--copper), var(--copper)) center / 1px 100% no-repeat; }
.expertise-list details[open] summary::after { background-size: 100% 1px, 1px 0; }
.expertise-list summary:hover { color: var(--copper); }
.expertise-list details p { max-width: 35rem; color: var(--muted); padding: 0 1.5rem 1.25rem .15rem; }

/* Méthode, expérience et contact */
.method { color: var(--light); background: var(--dark); }
.method .eyebrow { color: #e1dfd4; }
.method .eyebrow span { background: #dd937b; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); margin: 3rem 0 0; padding: 0; list-style: none; }
.method-grid li { border-top: 1px solid #75827b; padding-top: 1.2rem; }
.method-grid p { max-width: 24rem; margin-top: .7rem; color: #e1e6df; }
.experience { border-bottom: 1px solid var(--rule); }
.experience-role { margin-top: 1.05rem; color: var(--ink); font-weight: 600; }
.experience-intro { margin-top: .75rem; max-width: 25rem; color: var(--muted); }
.credentials { margin: 0; border-top: 1px solid var(--rule); }
.credentials div { border-bottom: 1px solid var(--rule); padding-block: 1.05rem 1.15rem; }
.credentials dt { margin-bottom: .35rem; font-size: .875rem; color: var(--muted); }
.credentials dd { margin: 0; font: clamp(1.25rem, 2.15vw, 1.65rem)/1.35 var(--serif); }
.credentials a { text-decoration-color: var(--copper); text-decoration-thickness: 1px; }
.credentials a:hover { color: var(--copper); }
.contact { align-items: center; }
.contact-actions p { color: var(--muted); max-width: 30rem; margin-bottom: 1.35rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--rule); padding-block: 1.6rem 2rem; }
.footer p, .top-link { font-size: .9rem; color: var(--muted); }

/* Boîte de préparation du message */
.compose-dialog { width: min(35rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.compose-dialog::backdrop { background: rgb(18 33 31 / .72); }
.dialog-top, .dialog-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.dialog-top { justify-content: space-between; margin-bottom: 1rem; }
.dialog-top h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.close { display: grid; place-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 1.6rem; }
.compose-dialog > p { color: var(--muted); }
.compose-dialog label { display: block; font-weight: 600; margin-block: 1rem .35rem; }
.compose-dialog textarea { width: 100%; padding: .65rem; border: 1px solid #82938b; color: var(--ink); background: #fff; resize: vertical; }
.dialog-actions { margin-top: .8rem; }
.feedback:not(:empty) { margin-top: .65rem; }

/* Adaptation écran et préférences de mouvement */
@media (max-width: 54rem) {
  .hero { grid-template-columns: 1.05fr .95fr; }
  .split { gap: 2rem; }
}
@media (max-width: 42rem) {
  .masthead-inner { min-height: 4.4rem; flex-wrap: wrap; column-gap: .75rem; row-gap: 0; }
  .masthead-inner .brand { margin-block: 1rem; }
  .navigation { flex-basis: 100%; flex-wrap: wrap; gap: .75rem 1.15rem; padding: 0 0 1rem; }
  .nav-contact { padding: .25rem .55rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 0; }
  .hero-copy { padding-block: 2.8rem 2.05rem; padding-right: 0; }
  h1 { font-size: clamp(3.1rem, 13vw, 5.4rem); }
  .hero-media { min-height: auto; aspect-ratio: 1.38; }
  .split, .method-grid { grid-template-columns: 1fr; }
  .method-grid { margin-top: 2rem; }
  .footer { flex-wrap: wrap; gap: .65rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entrance, .hero-media img { animation: none; }
  .button { transition: none; }
}

