@font-face { font-family: "Fraunces"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/fraunces-300.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }

:root {

  color-scheme: dark;
  --fond: #15170f;
  --texte: #ece7d8;
  --discret: #9c9682;
  --olive: #9cbf6a;
  --tige: #86a85a;
  --terre: #d9995f;
  --clair: #c3dc93;
  --sillon: rgba(156, 191, 106, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(176deg, var(--sillon) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 75%);
  mask-image: linear-gradient(to top, #000 0%, transparent 75%);
}
main { text-align: center; width: 100%; max-width: 1120px; min-width: 0; }
.domaine {
  color: var(--discret);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}

.pousse { display: block; width: 72px; height: 54px; margin: 0 auto 1.2rem; overflow: visible; }
.pousse .sol { stroke: var(--terre); stroke-width: 1.6; stroke-linecap: round; fill: none; opacity: .6;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: trace .8s ease-out .3s forwards; }
.pousse .tige { stroke: var(--tige); stroke-width: 2; stroke-linecap: round; fill: none;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: trace .9s ease-out .9s forwards; }
.pousse .feuille { fill: var(--olive); transform-box: fill-box; transform: scale(0); }
.pousse .gauche .feuille { transform-origin: 100% 100%; animation: deplie .8s cubic-bezier(.3, 1.4, .5, 1) 1.6s forwards; }
.pousse .droite .feuille { transform-origin: 0% 100%; animation: deplie .8s cubic-bezier(.3, 1.4, .5, 1) 1.9s forwards; }
.pousse .plante { transform-box: view-box; transform-origin: 32px 44px; animation: rafale 5s ease-in-out 2.8s infinite; }
.pousse .bras { transform-box: fill-box; }
.pousse .gauche { transform-origin: 100% 100%; animation: plie 5s ease-in-out 2.8s infinite; }
.pousse .droite { transform-origin: 0% 100%; animation: plie 5s ease-in-out 2.8s infinite; }

.titre { position: relative; display: inline-block; vertical-align: top; font-size: clamp(2rem, 9vw, 3.8rem);
  margin: 0.7rem 0 0.4rem; }
.titre h1 { white-space: nowrap; }
.f { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.f.hetre { background: var(--olive); -webkit-mask-image: url("/feuilles/hetre.svg"); mask-image: url("/feuilles/hetre.svg"); }
.f.chene { background: var(--clair); -webkit-mask-image: url("/feuilles/chene.svg"); mask-image: url("/feuilles/chene.svg"); }
.f.erable { background: var(--terre); -webkit-mask-image: url("/feuilles/erable.svg"); mask-image: url("/feuilles/erable.svg"); }

.metier {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--olive);
}

.bloc { margin-top: 1.8rem; animation: fondu 1.2s ease 2.3s both; }
.axes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem;
  color: var(--discret); font-size: .95rem; letter-spacing: .05em; }

.vedette { display: flex; align-items: center; gap: 1.6rem; max-width: 860px; margin: 2.4rem auto 0; padding: 1.4rem 1.8rem;
  border: 1px solid rgba(156, 191, 106, .35); border-radius: 14px; background: rgba(156, 191, 106, .06); text-align: left; }

.ic-foret { width: 5.9rem; height: 3.6rem; flex: none; }
.vedette .sur { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terre); }
.vedette h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin: .1rem 0 .5rem; }
.vedette ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .95rem; }
.vedette li { white-space: nowrap; }

.domaines { margin: 2.6rem auto 0; text-align: left; }
.domaines h2 { font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--olive);
  margin-bottom: .7rem; white-space: nowrap; }
.domaines ul { list-style: none; }
.domaines li { font-size: .9rem; color: var(--discret); line-height: 1.3; white-space: nowrap; }
.domaines li + li { margin-top: .5rem; }

.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 3rem; max-width: 820px;
  padding-top: 2.2rem; border-top: 1px solid rgba(156, 191, 106, .18); }

.contact { margin-top: 0.5rem; }
.contact a {
  color: var(--terre);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}
.contact a:hover, .contact a:focus-visible { border-bottom-color: var(--terre); }

h1 { animation: eclosion 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.domaine, .metier, .contact { animation: fondu 1.2s ease .3s both; }
.metier { animation-delay: 2.1s; }
.contact { animation-delay: 2.2s; }

@keyframes eclosion {
  from { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  to   { opacity: 1; filter: none; transform: none; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes deplie { to { transform: scale(1); } }
@keyframes rafale {
  0%, 55%, 100% { transform: rotate(0); }
  64% { transform: rotate(11deg); }
  71% { transform: rotate(-4deg); }
  78% { transform: rotate(3deg); }
  86% { transform: rotate(-1deg); }
  93% { transform: rotate(0); }
}
@keyframes plie {
  0%, 55%, 100% { transform: rotate(0); }
  64% { transform: rotate(12deg); }
  74% { transform: rotate(-5deg); }
  88% { transform: rotate(0); }
}
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1000px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { display: block; padding: 32px 18px; }
  .domaines li, .vedette li, .domaines h2 { white-space: normal; }
  .vedette { flex-direction: column; align-items: flex-start; padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  h1, .domaine, .metier, .contact, .bloc, .pousse .plante, .pousse .bras, .f { animation: none; }
  .pousse .sol, .pousse .tige { animation: none; stroke-dashoffset: 0; }
  .pousse .feuille { animation: none; transform: none; }
}
