@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff2") format("woff2");
  font-display: swap;
}

:root {
  --navy: #111226;
  --navy-2: #1c1e3a;
  --orange: #f58122;
  --orange-dark: #d96a0f;
  --light: #f1f1f1;
  --text: #2a2b3d;
  --muted: #5d5f73;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--light); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 40px); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: .01em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--orange); margin: 0 0 .6rem; }
.lead { font-size: 1.15rem; max-width: 640px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.site-header nav { display: flex; gap: 22px; align-items: center; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { color: var(--orange); }
.site-header .nav-cta { border: 2px solid var(--orange); padding: 6px 16px; border-radius: 999px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .15s, color .15s; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, var(--navy-2), var(--navy) 60%); color: #e8e8ef; padding: clamp(70px, 12vw, 140px) 0; }
.hero h1 { color: #fff; max-width: 820px; }

/* Sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-dark { background: var(--navy); color: #d6d7e2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }

.checks { list-style: none; padding: 0; margin: 22px 0 30px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }

.card-link { display: flex; flex-direction: column; gap: 6px; background: var(--navy); color: #fff; text-decoration: none; padding: 40px; border-radius: 20px; position: relative; min-height: 240px; justify-content: flex-end; transition: transform .2s; }
.card-link:hover { transform: translateY(-4px); }
.card-kicker { color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.card-title { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.card-sub { color: #b9bacb; }
.card-arrow { position: absolute; top: 30px; right: 34px; font-size: 2rem; color: var(--orange); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 30px; }
.tile { background: var(--navy-2); border-radius: var(--radius); padding: 28px; border-top: 3px solid var(--orange); }
.tile p { margin: 0; }
.note a { color: var(--orange); }

/* Form */
.form { display: grid; gap: 18px; margin-top: 30px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #c9cad4; border-radius: 10px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 129, 34, .2); }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy); color: #a7a8ba; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px 0; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* Simple pages */
.page { padding: 70px 0 90px; min-height: 60vh; }

@media (max-width: 800px) {
  .split, .grid, .form .row { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* ---------- Photo de l'atelier en fondu dans l'en-tête ---------- */
.hero { position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 1; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 58%; z-index: 0; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img {
  object-fit: cover; object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0%, #000 30%);
  mask-composite: intersect;
  opacity: 0; transform: scale(1.08);
  animation: photo-in 1.6s ease-out .2s forwards, photo-drift 24s ease-in-out 1.8s infinite alternate;
}
@keyframes photo-in { to { opacity: .85; transform: scale(1.02); } }
@keyframes photo-drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.5%); } }
.hero h1, .hero .lead, .hero .actions, .hero .eyebrow { animation: rise .9s ease-out both; }
.hero h1 { animation-delay: .1s; } .hero .lead { animation-delay: .25s; } .hero .actions { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hermine (clin d'oeil en pied de page) ---------- */
.hermine-mini { display: inline-block; width: 10px; height: 15px; margin-right: 8px; vertical-align: -2px; background: url("img/hermine.svg") center / contain no-repeat; }

/* ---------- Apparition au défilement ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .hero-photo { width: 100%; }
  .hero-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); opacity: .35; animation: none; }
  .hero-content { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img, .hero h1, .hero .lead, .hero .actions, .hero .eyebrow { animation: none; opacity: 1; }
  .hero-photo img { opacity: .85; }
}
