/* Axis Mundi — landing page */
:root {
  --papier: #f7f4ef;
  --papier-2: #efe9e1;
  --encre: #2f2f32;
  --gris: #6b6862;
  --trait: #3b3b3e;
  --cuivre: #a8775f;
  --cuivre-fonce: #8a5d47;
  --nuit: #232325;
  --filet: rgba(59, 59, 62, .14);
  --titre: 'Marcellus', 'Optima', 'Candara', serif;
  --texte: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.2rem/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--cuivre-fonce); }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
em { font-style: italic; }

.enveloppe { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.etroite { width: min(680px, 100% - 2.5rem); }

/* Barre */
.barre {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 244, 239, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}
.barre-nom {
  display: flex; align-items: center; gap: .55rem;
  font: 1.05rem var(--titre); letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre); text-decoration: none;
}
.barre nav { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); }
.barre nav a {
  font: .78rem var(--titre); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris); text-decoration: none; transition: color .2s;
}
.barre nav a:hover, .barre nav a:focus-visible { color: var(--cuivre-fonce); }
.barre .lien-contact { color: var(--cuivre-fonce); }

.symbole-mini { width: 1.6rem; height: 1.6rem; flex: none; }
.symbole-mini circle { fill: none; stroke: var(--trait); stroke-width: 1.6; }
.symbole-mini path { fill: var(--cuivre); }

/* Ouverture */
.ouverture {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.25rem 5rem; overflow: hidden;
}
.symbole { width: min(300px, 62vw); height: auto; margin-bottom: -1.2rem; }
.symbole .cercle {
  fill: none; stroke: var(--trait); stroke-width: 4.5;
  stroke-dasharray: 943; stroke-dashoffset: 943;
  transform: rotate(-90deg); transform-origin: 200px 230px;
  animation: trace 2.2s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}
.symbole .aiguille {
  fill: var(--cuivre);
  transform: scaleY(0); transform-origin: 200px 230px;
  animation: aiguille 1.6s cubic-bezier(.7, 0, .2, 1) .1s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes aiguille { to { transform: scaleY(1); } }

.ouverture h1 {
  position: relative;
  font-size: clamp(2.6rem, 8vw, 5.2rem); letter-spacing: .08em; text-transform: uppercase;
  background: var(--papier); padding: 0 .3em;
  opacity: 0; animation: monte 1.2s ease 1.6s forwards;
}
.sous-titre {
  position: relative; margin: .35rem 0 0; background: var(--papier); padding: 0 .6em;
  font: clamp(.85rem, 2vw, 1.05rem) var(--titre); letter-spacing: .32em; text-transform: uppercase;
  color: var(--cuivre);
  opacity: 0; animation: monte 1.2s ease 1.9s forwards;
}
.accroche {
  position: relative; margin: 2rem 0 0; background: var(--papier); padding: .2em .8em;
  font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--gris);
  opacity: 0; animation: monte 1.2s ease 2.3s forwards;
}
@keyframes monte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.fleche {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  opacity: 0; animation: monte 1s ease 3s forwards;
}
.fleche span {
  width: .75rem; height: .75rem; border-right: 1.5px solid var(--cuivre); border-bottom: 1.5px solid var(--cuivre);
  rotate: 45deg; animation: rebond 2.4s ease-in-out infinite 3.5s;
}
@keyframes rebond { 50% { transform: translate(3px, 3px); } }

/* Blocs */
.bloc { position: relative; padding: clamp(4.5rem, 11vw, 8rem) 0; }
.bloc::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 1px; height: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(var(--cuivre), transparent);
}
.surtitre {
  margin: 0 0 1rem;
  font: .8rem var(--titre); letter-spacing: .3em; text-transform: uppercase; color: var(--cuivre);
}
.bloc h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 1.6rem; }
.bloc p { margin: 0 0 1.1rem; }

.anime .bloc > * { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.anime .bloc.visible > * { opacity: 1; transform: none; }

/* Le nom */
.bloc-nom { text-align: center; }
.bloc-nom p { font-size: 1.3rem; }
.lettrine { font-size: 1.5rem !important; line-height: 1.5; }

/* Métiers */
.bloc-metiers { background: var(--papier-2); text-align: center; }
.metiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0; margin-top: 3rem; text-align: left;
}
.metier { padding: 2rem clamp(1.2rem, 3vw, 2.4rem); border-top: 1px solid var(--filet); }
.metier + .metier { border-left: 1px solid var(--filet); }
.numero { display: block; font: 1rem var(--titre); letter-spacing: .2em; color: var(--cuivre); margin-bottom: 1rem; }
.metier h3 { font-size: 1.45rem; margin-bottom: .9rem; }
.metier p { color: var(--gris); font-size: 1.12rem; margin: 0; }

/* Contact */
.bloc-contact { text-align: center; }
.bouton {
  display: inline-block; margin-top: 1rem; padding: .95rem 2.2rem;
  font: .85rem var(--titre); letter-spacing: .22em; text-transform: uppercase;
  color: var(--papier); background: var(--encre); text-decoration: none;
  border: 1px solid var(--encre); transition: background .25s, color .25s;
}
.bouton:hover, .bouton:focus-visible { background: transparent; color: var(--encre); }
.bouton { cursor: pointer; }
.retour-envoi { margin-top: 1.6rem !important; font-style: italic; color: var(--cuivre-fonce); }

/* Formulaire « Écrire au label » */
.formulaire {
  width: min(560px, 100% - 2rem); max-height: calc(100% - 2rem); padding: 0;
  border: 1px solid var(--filet); background: var(--papier); color: var(--encre);
  box-shadow: 0 30px 80px rgba(35, 35, 37, .25);
}
.formulaire::backdrop { background: rgba(35, 35, 37, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.formulaire[open] { animation: monte .35s ease; }
.formulaire form { position: relative; padding: clamp(1.6rem, 5vw, 2.6rem); }
.formulaire h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); margin-bottom: 1.6rem; }
.fermer {
  position: absolute; top: .6rem; right: .7rem; width: 2.6rem; height: 2.6rem;
  border: 0; background: none; color: var(--gris); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.fermer:hover, .fermer:focus-visible { color: var(--cuivre-fonce); }
.champ { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.champ label { font: .72rem var(--titre); letter-spacing: .22em; text-transform: uppercase; color: var(--cuivre-fonce); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: 1.1rem var(--texte); color: var(--encre);
  background: #fff; border: 1px solid rgba(59, 59, 62, .28); border-radius: 0; padding: .65rem .8rem;
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--cuivre); outline-offset: 1px; border-color: transparent; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.accord { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; color: var(--gris); margin: .4rem 0 1.2rem; }
.accord input { margin-top: .35rem; accent-color: var(--cuivre-fonce); width: 1.05rem; height: 1.05rem; flex: none; }
.erreur-form { color: var(--cuivre-fonce); font-size: 1rem; margin: 0 0 1rem !important; }
.formulaire .bouton { margin-top: 0; width: 100%; }
.formulaire .bouton:disabled { opacity: .6; cursor: wait; }

/* Pied */
.pied {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 3rem 1.25rem 3.5rem; border-top: 1px solid var(--filet);
  font-size: 1rem; color: var(--gris);
}
.pied p { margin: 0; }
.pied a { color: var(--gris); }

/* Page texte (mentions légales) */
.texte-page { padding: 8rem 0 5rem; }
.texte-page h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 2rem; }
.texte-page h2 { font-size: 1.4rem; margin: 2.4rem 0 .7rem; }
.texte-page p { margin: 0 0 1rem; }

@media (max-width: 760px) {
  .barre nav a:not(.lien-contact) { display: none; }
  .metier + .metier { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
