/* ==========================================================================
   La Vicleche Agency — feuille de style
   Polices auto-hébergées. La couleur vient des projets réels, pas de la déco.
   ========================================================================== */

/* ---- Polices auto-hébergées ---- */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-display-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-700.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --ink: #1c1a17;
  --paper: #e9e6de;
  --paper-light: #f4f2ec;
  --gold: #a9812f;
  --gold-deep: #8a6a25;
  --gold-light: #c9a24a;
  --slate: #605f57;
  --white: #faf9f6;
  --rule: rgba(28, 26, 23, 0.16);

  /* Couleurs des projets — reprises des sites réellement livrés */
  --violet: #6d28d9;        /* Mirvanie */
  --orange: #ff4d00;        /* Résonance LK Formation */
  --orange-text: #b83700;
  --teal: #3f5c5e;          /* La Kainfristanaise */

  --font-display: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --font-text: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 1.25rem;
  --max-w: 74rem;
  --radius: 2px;
}

@media (min-width: 700px) {
  :root { --gutter: 2.5rem; }
}
@media (min-width: 1100px) {
  :root { --gutter: 4rem; }
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol, dl { margin: 0; padding: 0; list-style: none; }

blockquote { margin: 0; }

/* ---- Accessibilité : focus & skip link ---- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 100;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: var(--gold-deep); }

.btn--gold {
  background: var(--gold-light);
  color: var(--ink);
}
.btn--gold:hover { background: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
  font-size: 0.9rem;
  padding: 0.6em 1.1em;
}
.btn--ghost:hover { border-color: var(--ink); }

/* ---- En-tête ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: var(--paper-light);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { border-radius: 50%; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.header-cta { white-space: nowrap; }

@media (max-width: 480px) {
  .brand__name { display: none; }
}

/* ---- Grille des sections ---- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.section__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 780px) {
  .section__grid {
    grid-template-columns: 11rem 1fr;
    gap: 3rem;
  }
}

.section__eyebrow {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  position: relative;
  padding-left: 1.1em;
}
.section__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.6em;
  height: 0.6em;
  background: var(--gold);
}

.section__body { max-width: 42rem; }

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.section__body p { color: var(--ink); }
.section__lede {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 1.3em;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 3.5rem var(--gutter) 3.5rem;
  background: var(--paper-light);
  overflow: hidden;
}

.hero__inner {
  max-width: 58rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.75rem, 13vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  max-width: 14ch;
}

.hero__title-emphasis { color: var(--gold-deep); }

.hero__sub {
  font-size: 1.15rem;
  max-width: 34ch;
  color: var(--ink);
  margin-bottom: 2rem;
}

/* Mobile : le sceau s'appose sous l'appel à l'action, entièrement visible,
   comme un cachet en bas d'un document signé. */
.hero__seal {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.seal-img {
  width: 5.5rem;
  height: auto;
  transform-origin: center;
  animation: seal-stamp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.2s;
}

@keyframes seal-stamp {
  0%   { transform: scale(2.4) rotate(-8deg); opacity: 0; }
  55%  { transform: scale(0.94) rotate(-2deg); opacity: 1; }
  75%  { transform: scale(1.04) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .seal-img { animation: none; }
}

@media (min-width: 780px) {
  .hero { padding: 6rem var(--gutter) 8rem; }
  .hero__seal {
    position: absolute;
    display: block;
    margin-top: 0;
    right: 4rem;
    bottom: 4rem;
    opacity: 0.9;
  }
  .seal-img { width: 10rem; }
}

/* ---- Réalisations ---- */
.section--work { border-bottom: none; padding-bottom: 2rem; }

.work-item {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.work-item--resonance { background: rgba(255, 77, 0, 0.07); }
.work-item--kainfristanaise { background: rgba(63, 92, 94, 0.09); }
.work-item--mirvanie { background: rgba(109, 40, 217, 0.07); }

.work-item__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 780px) {
  .work-item__grid { grid-template-columns: 11rem 1fr; gap: 3rem; }
}

.work-item__index {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  margin: 0;
}
.work-item--resonance .work-item__index { color: var(--orange-text); }
.work-item--kainfristanaise .work-item__index { color: var(--teal); }
.work-item--mirvanie .work-item__index { color: var(--violet); }

.work-item__content { max-width: 52rem; }

.work-item__shot {
  display: block;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(28, 26, 23, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-item__shot img { width: 100%; height: auto; }
@media (hover: hover) and (min-width: 780px) {
  .work-item__shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(28, 26, 23, 0.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-item__shot { transition: none; }
  .work-item__shot:hover { transform: none; box-shadow: none; }
}

.work-item__sector {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.work-item--resonance .work-item__sector { color: var(--orange-text); }
.work-item--kainfristanaise .work-item__sector { color: var(--teal); }
.work-item--mirvanie .work-item__sector { color: var(--violet); }

.work-item__name {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 0.9rem;
}

.work-item__desc { margin-bottom: 1.4rem; max-width: 42rem; }

.work-item__quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  max-width: 42rem;
}
.work-item--resonance .work-item__quote { border-left-color: var(--orange); }
.work-item--kainfristanaise .work-item__quote { border-left-color: var(--teal); }
.work-item__quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.work-item__quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--slate);
}

.work-item__link {
  margin-top: 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.work-item__link a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Ce qu'on livre ---- */
.section--deliver { background: var(--paper-light); }

.deliver-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.deliver-list li:last-child { padding-bottom: 0; }
.deliver-list h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.deliver-list p { color: var(--slate); }

/* ---- Fondateur ---- */
.section--founder { background: var(--paper-light); }

.founder-body {
  max-width: 48rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .founder-body {
    grid-template-columns: 13rem 1fr;
    gap: 2.25rem;
    align-items: start;
  }
}
.founder-photo {
  width: 100%;
  max-width: 13rem;
  height: auto;
  border-bottom: 5px solid var(--gold);
}
.founder-text p { color: var(--ink); }
.founder-signature {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-deep);
  margin-top: 1.2em;
}

/* ---- Prix (bande inversée) ---- */
.section--price {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
}
.section--price .section__eyebrow { color: var(--gold-light); }
.section--price .section__eyebrow::before { background: var(--gold-light); }
.section--price .section__title { color: var(--white); }
.section--price .section__body p { color: var(--paper); }
.section--price .section__lede { color: var(--paper); }

.price__amount {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1;
  margin: 0.25em 0 0.4em;
  color: var(--gold-light);
}
.price__vat {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  vertical-align: middle;
}

/* ---- Méthode ---- */
.method-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
}
.method-list li:last-child { padding-bottom: 0; }
.method-list li::before {
  counter-increment: method;
  content: counter(method);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-deep);
  grid-column: 1;
  grid-row: 1 / span 2;
}
.method-list { counter-reset: method; }
.method-list h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  grid-column: 2;
}
.method-list p { color: var(--slate); margin: 0; grid-column: 2; }

/* ---- FAQ / Objections ---- */
.section--faq { background: var(--paper-light); }

.faq-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.faq-item dt {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.faq-item dd {
  margin: 0;
  color: var(--slate);
}

/* ---- CTA final ---- */
.section--final-cta {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
  padding: 5.5rem 0;
}
.section--final-cta .section__grid {
  grid-template-columns: 1fr;
  justify-items: center;
}
.final-cta__title {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 16ch;
  margin-bottom: 1.6rem;
  color: var(--white);
}

/* ---- Pages légales ---- */
.legal {
  padding: 3.5rem var(--gutter) 4.5rem;
  background: var(--paper-light);
}
.legal__inner {
  max-width: 44rem;
  margin: 0 auto;
}
.legal__back {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.legal__back a { text-decoration: underline; text-underline-offset: 3px; }
.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.legal__updated {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 2.5rem;
}
.legal__lede {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.legal p { margin-bottom: 1.1em; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Pied de page ---- */
.site-footer {
  padding: 2.5rem var(--gutter) 3rem;
  background: var(--paper-light);
  border-top: 1px solid var(--rule);
}
.site-footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
}
.site-footer__brand img { border-radius: 50%; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-footer__nav a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.site-footer__nav a:hover { border-bottom-color: var(--ink); }
.site-footer__legal {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0;
}
.site-footer__legal a { text-decoration: underline; }
