﻿/* ============================================================
   Dune â€” Cartomancie & Tarologie
   Palette : encre profonde + or champagne. Sobre, pas kitsch.
   ============================================================ */

:root {
  --ink: #FAF7F0;          /* fond principal */
  --ink-2: #F3EDE0;        /* sections alternÃ©es */
  --ink-3: #FFFFFF;        /* surfaces (cartes, offres) */
  --gold: #A87E3F;         /* accent principal */
  --gold-bright: #86622E;  /* accent clair (hover, titres em) */
  --ivory: #2B2620;        /* texte principal */
  --muted: #6E6657;        /* texte secondaire */
  --line: rgba(168, 126, 63, 0.3);
  --line-soft: rgba(43, 38, 32, 0.12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 300ms;
  --dur-reveal: 700ms;

  --radius: 14px;
  --container: 1120px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(201, 162, 95, 0.35); }

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em {
  font-style: italic;
  color: var(--gold-bright);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.lead, .section-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 38em;
  margin-top: 1.4rem;
}
.center { text-align: center; }
.center .section-lead, .center.narrow .section-lead { margin-inline: auto; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
section[id] { scroll-margin-top: 72px; }
.section-alt {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: #FAF7F0;
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 6px 30px rgba(201, 162, 95, 0.25);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ivory);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.btn-small { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.btn-full { display: block; width: 100%; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background-color var(--dur-med) ease,
              padding var(--dur-med) ease,
              border-color var(--dur-med) ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  padding: 0.7rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}
.brand-mark { color: var(--gold); font-size: 0.9rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.93rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color var(--dur-fast) ease;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links .nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  color: var(--ivory);
}
.nav-links .nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.7rem 0.5rem;
}
.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 8rem;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.hero-note {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.3rem;
}

/* Ã‰ventail de cartes */
.hero-cards { display: flex; justify-content: center; }
.card-fan {
  position: relative;
  width: min(230px, 52vw);
  aspect-ratio: 200 / 320;
}
.fan-card {
  position: absolute;
  inset: 0;
  color: var(--gold);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  transform-origin: 50% 115%;
  animation: fan-in 1100ms var(--ease-out) both;
}
.fan-card svg { width: 100%; height: auto; }
.fan-left   { --fan-angle: -16deg; animation-delay: 250ms; z-index: 1; }
.fan-center { --fan-angle: 0deg;   animation-delay: 100ms; z-index: 2; color: var(--gold-bright); }
.fan-right  { --fan-angle: 16deg;  animation-delay: 400ms; z-index: 1; }

@keyframes fan-in {
  from { transform: translateY(46px) rotate(0deg); opacity: 0; }
  to   { transform: translateY(0) rotate(var(--fan-angle)); opacity: 1; }
}

/* Flottement continu, trÃ¨s lent â€” appliquÃ© au conteneur */
.card-fan { animation: float 7s ease-in-out infinite 1600ms; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Piliers (approche) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.5rem;
}
.pillar {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  background: linear-gradient(180deg, rgba(237, 231, 218, 0.025), transparent 60%);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { color: var(--muted); font-size: 0.99rem; }

/* ---------- Tirage interactif ---------- */
.draw-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}
.draw-card-wrap { perspective: 1200px; }
.draw-card {
  display: block;
  width: min(220px, 60vw);
  aspect-ratio: 200 / 320;
  border-radius: 14px;
  color: var(--gold);
  transition: transform var(--dur-med) var(--ease-out);
}
.draw-card:not(.flipped):hover { transform: translateY(-6px); }
.draw-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 640ms var(--ease-out);
}
.draw-card.flipped .draw-inner { transform: rotateY(180deg); }
.draw-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}
.draw-back svg { width: 100%; height: 100%; }
.draw-front {
  transform: rotateY(180deg);
  background: var(--ink-3);
  border: 1.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.4rem;
}
.draw-numeral {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: 1rem;
  color: var(--gold);
}
.draw-glyph { width: 84px; height: 84px; color: var(--gold-bright); }
.draw-glyph svg { width: 100%; height: 100%; }
.draw-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ivory);
  text-align: center;
}
.draw-reading[hidden] { display: none; }
.draw-reading {
  max-width: 460px;
  text-align: center;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.draw-keywords {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.draw-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--ivory);
}
.draw-hint {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Offres ---------- */
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.5rem;
  align-items: stretch;
}
.offer {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  background: var(--ink-2);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
  will-change: transform;
}
.offer-featured {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(201, 162, 95, 0.07), var(--ink-2) 55%);
}
.offer-tag {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.offer h3 { font-size: 1.8rem; margin-bottom: 0.7rem; }
.offer-desc { color: var(--muted); font-size: 0.98rem; }
.offer-price {
  margin: 1.4rem 0;
  font-family: var(--font-display);
}
.offer-price strong { font-size: 2.1rem; font-weight: 600; color: var(--gold-bright); }
.offer-price span { color: var(--muted); font-family: var(--font-body); font-size: 0.92rem; }
.offer-list {
  list-style: none;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}
.offer-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.offer-list li::before {
  content: "âœ¦";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  color: var(--gold);
}

/* ---------- Ã‰tapes ---------- */
.steps {
  list-style: none;
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.6rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.2rem;
  text-align: center;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.99rem; }

/* ---------- Ã‰thique ---------- */
.ethics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3.2rem;
}
.ethics-col {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  background: var(--ink-2);
}
.ethics-col h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  font-size: 1.3rem;
}
.ethics-mark { font-size: 0.95rem; }
.ethics-mark.yes { color: var(--gold); }
.ethics-mark.no { color: #b3737a; }
.ethics-col ul { list-style: none; }
.ethics-col li {
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--muted);
  font-size: 0.98rem;
}
.ethics-col li:last-child { border-bottom: none; }

/* ---------- TÃ©moignages ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.2rem;
}
.quote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.5rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.45;
}
.quote footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.8rem; }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.28rem;
  transition: color var(--dur-fast) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item p {
  color: var(--muted);
  padding: 0 0 1.5rem;
  max-width: 60ch;
}

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201, 162, 95, 0.08), transparent),
    var(--ink);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}
.contact-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.8rem 0;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.footer-brand span { color: var(--gold); font-size: 0.8rem; }
.footer-legal {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 56ch;
}
.footer-copy { color: var(--muted); font-size: 0.84rem; }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--gold-bright); }

/* ---------- RÃ©vÃ©lations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 270ms; }
.delay-4 { transition-delay: 360ms; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-cards { order: 0; margin-bottom: 1rem; }
  .card-fan { width: min(170px, 44vw); }
  .hero { padding-top: 7rem; }
  .hero-actions { justify-content: center; }
  .lead { margin-inline: auto; }

  .pillars, .offers, .quotes { grid-template-columns: 1fr; }
  .ethics { grid-template-columns: 1fr; }
  .offer-featured { order: -1; }

  .nav-toggle { display: flex; z-index: 110; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(250, 247, 240, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { font-size: 1.25rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .section { padding: 3.8rem 0; }
}

/* ---------- Mouvement rÃ©duit ---------- */
@media (prefers-reduced-motion: reduce) {
  .fan-card { animation: none; transform: rotate(var(--fan-angle)); opacity: 1; }
  .card-fan { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw-inner { transition: none; }
  .btn, .offer { transition: none; }
  .stars { display: none; }
}

.skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 1rem; margin: 0; overflow: visible; clip: auto; white-space: normal; background: var(--ink); color: var(--ivory); z-index: 999; display: block; text-align: center; font-weight: bold; }


/* ---------- News Cards (Permanent Pop-ups) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.news-card {
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(43, 38, 32, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(43, 38, 32, 0.12);
}
.news-media {
  margin: -2.5rem -2.5rem 1.5rem -2.5rem;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.news-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}
.news-title {
  color: var(--ivory);
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
}
.news-text {
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ---------- A propos & Hermite Photos ---------- */
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .apropos-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.apropos-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.apropos-media img {
  max-width: 80%;
  height: auto;
  border: 1px solid var(--line-soft);
  padding: 12px;
  background: var(--ink-3);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  outline: 1px solid var(--gold);
  outline-offset: -6px;
}


/* ---------- Consent Banner ---------- */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--ink-2);
  border-top: 1px solid var(--gold);
  padding: 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.consent-banner.show {
  transform: translateY(0);
}
.consent-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  text-align: center;
}
@media (min-width: 768px) {
  .consent-content {
    flex-direction: row;
    text-align: left;
  }
}
.consent-content p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}
.consent-content a {
  color: var(--gold);
  text-decoration: underline;
}

