/* =========================================================
   Anaëlle Tarot · feuille de style commune
   Palette, typographie, composants partagés
   ========================================================= */

:root {
  --cream: #fdf3df;
  --cream-deep: #f7e7c4;
  --tomato: #e8482c;
  --tomato-dark: #c93a20;
  --mustard: #f5b21f;
  --rose: #ff7eb3;
  --sage: #5e8a5b;
  --royal: #2c4eb0;
  --ink: #1d1d2e;
  --ink-soft: #3a3a4e;
  --ink-mute: rgba(29, 29, 46, 0.55);

  --shadow-card: 8px 8px 0 var(--ink);
  --shadow-lift: 14px 14px 0 var(--ink);
  --radius-card: 16px;
  --radius-pill: 100px;

  --max-content: 1200px;
  --max-portfolio: 1400px;

  --font-display: 'Caprasimo', 'Fraunces', Georgia, serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Grain papier discret */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1000;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

::selection { background: var(--mustard); color: var(--ink); }

img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(253, 243, 223, 0.78);
  border-bottom: 1px dashed rgba(29, 29, 46, 0.18);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--tomato);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 16px;
  transform: rotate(-8deg);
  transition: transform .35s ease;
}
.logo:hover .logo-mark { transform: rotate(360deg); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--tomato); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px !important;
  text-decoration: none;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--tomato); transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

/* =========================================================
   BOUTONS, ÉTIQUETTES, TYPO
   ========================================================= */
.section-label {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--tomato);
  margin-bottom: 8px;
  display: inline-block;
}
.section-label--royal { color: var(--royal); }
.section-label--mustard { color: var(--mustard); }
.section-label--sage { color: var(--sage); }

.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: '';
  position: absolute;
  bottom: -6px; left: -4px; right: -4px;
  height: 12px;
  background: var(--mustard);
  z-index: -1;
  transform: skewX(-5deg);
}
.underline--royal::after { background: var(--royal); opacity: .25; }
.underline--rose::after { background: var(--rose); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--tomato);
  color: var(--cream);
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  border: 0;
  cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s;
  box-shadow: 6px 6px 0 var(--mustard);
}
.btn:hover {
  background: var(--rose);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--mustard);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); box-shadow: none; }

/* =========================================================
   FORMES FLOTTANTES
   ========================================================= */
.shape {
  position: absolute;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.shape-1 { top: 18%; left: 8%; animation-delay: 0s; }
.shape-2 { top: 25%; right: 10%; animation-delay: 1s; }
.shape-3 { bottom: 20%; left: 12%; animation-delay: 2s; }
.shape-4 { bottom: 28%; right: 8%; animation-delay: 0.5s; }
.shape-5 { top: 60%; left: 50%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--cream-deep);
  padding: 32px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 2px dashed var(--ink);
}
.footer .heart { color: var(--tomato); }
.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-links a:hover {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}

/* =========================================================
   APPARITION AU SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE GLOBAL
   ========================================================= */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px dashed var(--ink);
    padding: 20px 0;
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 20px; font-size: 18px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin: 12px auto 4px; }
  .footer { padding: 24px 20px; }
}
