@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #FAF6F0;
  --sand: #F1E9DD;
  --ink: #2B3A2E;
  --accent: #9A4A27;
  --sage: #7D8F72;
  --clay: #C4704B;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 10vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2.5rem; }
p, ul, dl { margin: 0; }
p + p, p + ul, ul + p { margin-top: 1rem; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.skip:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Information manquante à fournir par Valérie : visible tant qu'elle n'est pas remplacée. */
.todo { background: #FFF1A8; color: var(--ink); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.95em; }

/* Boutons */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--accent);
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-secondary { color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* En-tête */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.brand { text-decoration: none; color: var(--ink); margin-right: auto; }
.brand strong { display: block; font: 600 1.25rem/1.2 var(--serif); }
.brand span { font-size: 0.9375rem; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 0.5rem; display: inline-block; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-header .btn { padding: 0.5rem 1.25rem; }
@media (max-width: 48rem) {
  .site-header .wrap { column-gap: 1rem; }
  .site-nav { order: 3; width: 100%; }
  /* Une seule rangée qui défile si besoin, comme le demande la spec */
  .site-nav ul { flex-wrap: nowrap; gap: 1rem; justify-content: space-between; overflow-x: auto; }
  .site-nav a { white-space: nowrap; font-size: 1rem; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 8vw, 6rem) var(--section); position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.4fr 1fr; } }
.hero h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.hero h1 span { display: block; font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 400; letter-spacing: 0; margin-top: 1rem; }
.hero .lead { font-size: clamp(1.125rem, 2vw, 1.3125rem); max-width: 42ch; margin-top: 1.75rem; }
.hero .places { margin-top: 0.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
/* Portrait découpé en galet, posé sur trois galets aux couleurs du site.
   Positions en % du portrait : l'ensemble garde ses proportions sur mobile. */
.portrait { position: relative; isolation: isolate; width: min(62%, 18rem); justify-self: center; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 52% 48% 46% 54% / 44% 50% 50% 56%; }
.galet { position: absolute; z-index: -1; }
.galet-sauge  { left: -20%; top: 2%; width: 100%; height: 92%; background: var(--sage);
  border-radius: 68% 32% 40% 60% / 58% 36% 64% 42%; transform: rotate(-16deg); }
.galet-argile { left: 24%; top: 18%; width: 94%; height: 86%; background: var(--clay);
  border-radius: 38% 62% 66% 34% / 44% 60% 40% 56%; transform: rotate(12deg); }
.galet-sable  { left: 58%; top: -12%; width: 56%; height: 36%; background: color-mix(in srgb, var(--sage) 35%, var(--sand));
  border-radius: 72% 28% 58% 42% / 40% 66% 34% 60%; transform: rotate(24deg); }
/* Mobile : le portrait passe entre le nom et le texte (ordre visuel seulement, le HTML ne change pas) */
@media (max-width: 56rem) {
  .hero .wrap { gap: 0; align-items: start; }
  .hero .wrap > div:first-child { display: contents; }
  .hero .wrap > div > * { order: 3; }
  .hero .wrap > div > h1 { order: 1; }
  .hero { padding-top: 1.5rem; }
  .hero .wrap > .portrait { order: 2; width: min(48%, 11rem); justify-self: center; margin-top: 2rem; }
  .hero .lead { margin-top: 2rem; }
}

/* Sections : titre dans la marge de gauche sur grand écran */
.section { padding-block: var(--section); }
.section.alt { background: var(--sand); }
/* Un seul bloc sombre dans la page : le moment fort, en vert profond */
.section.dark { background: var(--ink); color: var(--bg); }
.section.dark .points li::before { background: var(--clay); }
.section .wrap { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 56rem) {
  .section .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .section .wrap > h2 { grid-column: 1; }
  .section .wrap > .body { grid-column: 2; }
}
.body { max-width: 62ch; }
.body > h3:first-child { margin-top: 0; }
.body > h3 + * { margin-top: 0.75rem; }


/* Approche */
.points { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.points li { padding-left: 2.25rem; position: relative; font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.3; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 0.85em; height: 0.7em; background: var(--sage); border-radius: 60% 40% 55% 45%;
}

/* Listes */
.list { padding-left: 1.25rem; }
.list li + li { margin-top: 0.5rem; }
.list li::marker { color: var(--sage); }
.motifs { display: grid; gap: 1.5rem 2.5rem; margin-top: 1rem; }
@media (min-width: 56rem) { .motifs { grid-template-columns: 1fr 1fr; } }
.motifs dt { font-weight: 600; }
.motifs dd { margin: 0.25rem 0 0; }
.affiliations { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }

/* Cabinets */
.cabinets { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .cabinets { grid-template-columns: 1fr 1fr; } }
/* Galets, comme le portrait : deux formes irrégulières différentes. Arrondis en rem et non en % pour que la courbe ne se déforme pas quand la carte change de proportions. */
.cabinet { background: color-mix(in srgb, var(--sage) 22%, var(--bg)); border-radius: 4.5rem 3rem 5rem 2.5rem / 3.5rem 4.5rem 3rem 4rem; padding: 2.25rem 2rem; }
@media (max-width: 40rem) { .cabinet { padding: 2rem 1.75rem; } }
.cabinet + .cabinet { background: color-mix(in srgb, var(--clay) 18%, var(--bg)); border-radius: 3rem 5rem 3rem 4.5rem / 4.5rem 3rem 4rem 3.5rem; }
.cabinet h3 { margin: 0 0 0.75rem; font-size: 1.5rem; }
.cabinet address { font-style: normal; display: flex; gap: 0.5rem; align-items: flex-start; }
.cabinet address .icon { margin-top: 0.2em; }
.cabinet address + p { margin-top: 0.5rem; }

/* Contact */
.direct { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 0.75rem; }
.direct a { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1.1875rem; font-weight: 600; padding-block: 0.25rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.form { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 8px;
  padding: 0.75rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.hint { font-size: 0.9375rem; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }

/* Pages simples */
.page { padding-block: clamp(2.5rem, 8vw, 5rem) var(--section); }
.page .wrap { max-width: 48rem; }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 500; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 3rem; font-size: 0.9375rem; }
.site-footer a { color: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer :focus-visible { outline-color: var(--bg); }

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