/* Feyhar — système de design commun (feyhar.com, learn, studio) */
:root {
  --ivory: #f4efe7;
  --paper: #fbf8f3;
  --sand: #e9e1d4;
  --ink: #0f0e0d;
  --ink-2: #1b1917;
  --muted: #6f685f;
  --muted-d: #a19a90;
  --line: rgba(15, 14, 13, 0.12);
  --line-d: rgba(244, 239, 231, 0.14);
  --bronze: #a8834a;
  --bronze-l: #d9b679;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
::selection { background: var(--bronze); color: #fff; }

/* Typo */
.serif, h1, h2, h3.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 8.5vw, 7rem); line-height: 0.98; }
h2 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--bronze); font-weight: 400; }
.dark h1 em, .dark h2 em { color: var(--bronze-l); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--muted-d); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; }
.dark .lead { color: var(--muted-d); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.32em; }
.brand small { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; color: var(--bronze); font-weight: 600; text-transform: uppercase; margin-left: -0.1rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--ink); opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links .btn, .nav-links .btn:hover { opacity: 1; color: var(--paper); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.95rem 1.6rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 0.92rem; font-weight: 500; border: 1px solid var(--ink); cursor: pointer; transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 14, 13, 0.18); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.bronze { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn.sm { padding: 0.65rem 1.15rem; font-size: 0.85rem; }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn.ghost { background: transparent; color: var(--paper); border-color: var(--line-d); }
.dark .btn.ghost:hover { border-color: var(--paper); }

/* Sections */
section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.dark { background: var(--ink); color: var(--paper); }
.ivory { background: var(--ivory); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head > div { max-width: 640px; }
.sec-head h2 { margin-top: 1rem; }

/* Fond animé */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 18s ease-in-out infinite alternate; }
.glow i:nth-child(1) { width: 46vw; height: 46vw; background: #e8cf9f; top: -18vw; right: -10vw; }
.glow i:nth-child(2) { width: 34vw; height: 34vw; background: #d9c8b4; bottom: -14vw; left: -8vw; animation-duration: 22s; }
.glow i:nth-child(3) { width: 22vw; height: 22vw; background: #f0dcc0; top: 30%; left: 40%; animation-duration: 26s; opacity: 0.4; }
.dark .glow i { opacity: 0.22; }
@keyframes float { to { transform: translate(6vw, 4vw) scale(1.12); } }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.z { position: relative; z-index: 1; }

/* Défilant */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 1.3rem 0; background: var(--paper); }
.marquee.dark { border-color: var(--line-d); background: var(--ink); }
.marquee .track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; padding: 0 1.6rem; }
.marquee span.dot { color: var(--bronze); font-style: normal; padding: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cartes image */
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78)); z-index: 0; }
.tile .in { position: absolute; inset: auto 0 0; padding: clamp(1.5rem, 3vw, 2.4rem); z-index: 1; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(168, 131, 74, 0.15); }
.dark .field { color: var(--muted-d); }
.dark .field input, .dark .field select, .dark .field textarea { background: var(--ink-2); color: var(--paper); border-color: var(--line-d); }

/* Footer */
.footer { background: var(--ink); color: var(--muted-d); padding: 4rem 0 2.5rem; font-size: 0.9rem; }
.footer .top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-d); }
.footer .brand { color: var(--paper); }
.footer nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--paper); }
.footer .bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; font-size: 0.8rem; letter-spacing: 0.06em; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Menu mobile */
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger i, .burger::before, .burger::after { content: ""; position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.burger::before { top: 14px; } .burger i { top: 19.5px; } .burger::after { top: 25px; }
.menu-open .burger::before { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger::after { transform: translateY(-5.5px) rotate(-45deg); }
.menu-open .burger i { opacity: 0; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links { position: fixed; inset: 72px 0 auto; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.35s; z-index: -1; }
  .menu-open .nav-links { transform: none; }
  .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links .btn { margin-top: 1rem; border: 0; }
}

/* Bloc « Qui suis-je » (Learn, Studio) */
.me { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.me .pic { aspect-ratio: 1; border-radius: 20px; background: var(--ink); display: grid; place-items: center; overflow: hidden; position: relative; }
.me .pic img { width: 42%; }
.me .pic img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.8rem 0 1rem; }
.me p { color: var(--muted); margin-bottom: 1.4rem; max-width: 640px; }
.me .ctas { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 700px) { .me { grid-template-columns: 1fr; } .me .pic { max-width: 160px; } }

/* Formulaires : captcha, messages, confirmation */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.cf-turnstile { min-height: 65px; }
.form-msg { font-size: 0.92rem; min-height: 1.2em; }
.form-msg[data-kind="error"] { color: #c0392b; }
.dark .form-msg[data-kind="error"] { color: #ff8a7a; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.form.sent { display: block; }
.sent-box { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; animation: sentIn 0.6s cubic-bezier(.2,.8,.2,1); }
.sent-box .check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.4rem; background: var(--bronze); color: #fff; font-size: 2rem; box-shadow: 0 0 0 10px rgba(168,131,74,0.15); }
.sent-box h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.sent-box p { color: var(--muted); }
.dark .sent-box p { color: var(--muted-d); }
@keyframes sentIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } }

.form-legal { font-size: 0.78rem; color: var(--muted); }
.dark .form-legal { color: var(--muted-d); }
.form-legal a { color: inherit; }
