/* ==========================================================================
   Luciole Céleste — design tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* colour — aligned with the Luciole Céleste emblem (or, améthyste, ivoire) */
  --nuit: #3D2760;        /* deep aubergine — hero / dark panels, richer & more saturated */
  --nuit-haut: #6644A0;   /* luminous plum for gradients */
  --brume: #F7F2E7;       /* warm ivory — main background */
  --papier: #FFFDF8;      /* near-white — cards */
  --or: #C9982E;          /* emblem gold — signature accent, brighter */
  --or-doux: #F3DFA8;     /* pale gold for glows/washes, more luminous */
  --or-vif: #E8BE55;      /* bright gold — hovers & highlights */
  --sauge: #A177C7;       /* amethyst mauve — secondary accent, more vivid */
  --encre: #2B2333;       /* primary text */
  --encre-doux: #6A5F70;  /* secondary text */
  --ligne: rgba(43,35,51,0.13);

  /* type */
  --display: 'Fraunces', serif;
  --corps: 'Work Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  /* rhythm */
  --espace-page: clamp(24px, 6vw, 96px);
  --rayon: 2px;
}

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

body{
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--corps);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sauge);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 8px 1px var(--or-doux);
}

p{ margin: 0 0 1em; color: var(--encre-doux); }
p:last-child{ margin-bottom: 0; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--espace-page);
  padding-right: var(--espace-page);
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(120deg, rgba(247,242,231,0.92) 0%, rgba(243,223,168,0.55) 45%, rgba(247,242,231,0.92) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,152,46,0.35);
  box-shadow: 0 1px 0 rgba(232,190,85,0.25);
}
.nav{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px var(--espace-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--encre);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}
.logo .point{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or);
  display: inline-block;
  box-shadow: 0 0 10px 2px var(--or-doux);
  transform: translateY(-2px);
}
.logo img{
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo img{
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}
.nav-links{
  list-style: none;
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.nav-links a{
  text-decoration: none;
  color: var(--encre-doux);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--encre); }
.nav-links a[aria-current="page"]::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-2px;
  height:1px; background: var(--or);
}
.nav-toggle{ display:none; }

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 62px 0 0 0;
    background-color: #F7F2E7;
    box-shadow: 0 12px 24px rgba(46,33,64,0.18);
    z-index: 45;
    flex-direction: column;
    padding: 32px var(--espace-page);
    gap: 22px;
    font-size: 1.1rem;
    visibility: hidden;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-links.open{
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
  }
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none; border: 1px solid var(--ligne); border-radius: 50%;
    cursor: pointer;
  }
  .nav-toggle span{ width: 16px; height: 1px; background: var(--encre); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after{
    content:''; position:absolute; left:0; width:16px; height:1px; background: var(--encre);
  }
  .nav-toggle span::before{ top: -5px; }
  .nav-toggle span::after{ top: 5px; }
}

/* ---------- hero (dark) ---------- */
.hero{
  position: relative;
  background: radial-gradient(ellipse 120% 90% at 20% 0%, var(--nuit-haut), var(--nuit) 65%);
  color: var(--papier);
  overflow: hidden;
  padding: clamp(72px, 14vw, 148px) 0 clamp(64px, 10vw, 120px);
}
.hero .container{ position: relative; z-index: 2; }
.hero .eyebrow{ color: var(--or-doux); }
.hero .eyebrow::before{ box-shadow: 0 0 10px 2px var(--or); }
.hero h1{
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  max-width: 15ch;
  margin-top: 0.5em;
  color: var(--papier);
}
.hero .lede{
  color: rgba(250,250,246,0.72);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 1.3em;
}
.hero .cta-row{
  margin-top: 2.4em;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fireflies{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.firefly{
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 12px 3px var(--or-doux);
  opacity: 0;
  animation: drift 14s ease-in-out infinite;
}
.firefly:nth-child(1){ top: 22%; left: 68%; animation-delay: 0s; }
.firefly:nth-child(2){ top: 55%; left: 82%; animation-delay: 3.5s; }
.firefly:nth-child(3){ top: 74%; left: 58%; animation-delay: 7s; }
.firefly:nth-child(4){ top: 38%; left: 90%; animation-delay: 10.5s; }

@keyframes drift{
  0%   { opacity: 0; transform: translate(0,0); }
  15%  { opacity: .9; }
  50%  { opacity: .5; transform: translate(-24px,-30px); }
  85%  { opacity: .9; }
  100% { opacity: 0; transform: translate(10px,-55px); }
}
@media (prefers-reduced-motion: reduce){
  .firefly{ animation: none; opacity: .6; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--rayon);
  font-family: var(--corps);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primaire{ background: var(--or); color: var(--nuit); }
.btn-primaire:hover{ background: var(--or-vif); }
.btn-fantome{ border-color: rgba(250,250,246,0.35); color: var(--papier); }
.btn-fantome:hover{ border-color: var(--papier); }
.btn-sombre{ border-color: var(--ligne); color: var(--encre); }
.btn-sombre:hover{ border-color: var(--sauge); }

/* ---------- sections ---------- */
section{ padding: clamp(56px, 9vw, 108px) 0; }
.section-papier{ background: var(--papier); }

.section-head{ max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 0.5em; }

/* pull quote */
.citation{
  border-left: 2px solid var(--or);
  padding-left: clamp(20px, 3vw, 36px);
  max-width: 62ch;
}
.citation p{
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--encre);
  line-height: 1.45;
}
.citation cite{
  display: block;
  margin-top: 1em;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--encre-doux);
}

/* approach list */
.approche-liste{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ligne);
}
.approche-liste li{
  padding: 1.1em 0;
  border-bottom: 1px solid var(--ligne);
  display: flex;
  align-items: baseline;
  gap: 1em;
  color: var(--encre);
}
.approche-liste li::before{
  content:'';
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--or);
  transform: translateY(-2px);
}

/* grid cards */
.grille{
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.grille-2{ grid-template-columns: repeat(2, 1fr); }
.grille-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px){
  .grille-2, .grille-3{ grid-template-columns: 1fr; }
}

.carte{
  background: var(--papier);
  border: 1px solid var(--ligne);
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--rayon);
}
.carte h3{ font-size: 1.3rem; margin-bottom: 0.5em; }
.carte .num{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--sauge);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1em;
}
.carte .prix{
  display: inline-block;
  margin-top: 1em;
  padding-top: 0.9em;
  border-top: 1px solid var(--ligne);
  width: 100%;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--nuit);
  letter-spacing: 0.02em;
}
.carte .prix strong{
  color: var(--or-doux, var(--or));
  font-size: 0.95rem;
}
.carte .prix .note{
  display: block;
  margin-top: 0.35em;
  color: var(--sauge);
  font-size: 0.76rem;
}

/* image placeholder */
.visuel-attente{
  aspect-ratio: 4/5;
  border-radius: var(--rayon);
  background:
    radial-gradient(circle at 30% 25%, rgba(198,160,90,0.35), transparent 55%),
    linear-gradient(155deg, var(--nuit-haut), var(--nuit));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: rgba(250,250,246,0.55);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.visuel-attente.large{ aspect-ratio: 16/9; }

/* two-col with image */
.duo{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.duo.inverse{ grid-template-columns: 1.1fr 0.9fr; }
.duo.inverse .duo-texte{ order: 2; }
@media (max-width: 860px){
  .duo, .duo.inverse{ grid-template-columns: 1fr; }
  .duo.inverse .duo-texte{ order: 0; }
}

/* testimonials */
.temoignage{
  background: var(--brume);
  border: 1px solid var(--ligne);
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--rayon);
}
.temoignage p{ font-family: var(--display); font-style: italic; color: var(--encre); font-size: 1.05rem; }
.temoignage .auteur{ margin-top: 1em; font-family: var(--mono); font-size: 0.72rem; color: var(--encre-doux); letter-spacing: .04em; }

/* faq */
.faq-item{ border-bottom: 1px solid var(--ligne); }
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 1.3em 0;
  font-family: var(--display);
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: '+';
  font-family: var(--corps);
  font-size: 1.4rem;
  color: var(--or);
  flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ padding-bottom: 1.4em; max-width: 62ch; }

/* CTA band */
.bande-cta{
  background: var(--nuit);
  color: var(--papier);
  text-align: left;
}
.bande-cta h2{ color: var(--papier); font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 22ch; }
.bande-cta .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* footer */
.site-footer{
  background: var(--nuit);
  color: rgba(250,250,246,0.6);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  font-size: 0.9rem;
}
.footer-grille{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250,250,246,0.14);
}
@media (max-width: 720px){ .footer-grille{ grid-template-columns: 1fr; } }
.footer-grille h4{
  color: var(--papier);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1em;
}
.footer-grille a{ text-decoration: none; color: rgba(250,250,246,0.6); }
.footer-grille a:hover{ color: var(--or-doux); }
.footer-grille ul{ list-style:none; margin:0; padding:0; display:grid; gap: 0.7em; }
.footer-bas{
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
}

/* page hero (light, for inner pages) */
.entete-page{
  padding: clamp(56px,10vw,100px) 0 clamp(32px,5vw,48px);
}
.entete-page h1{ font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 0.5em; max-width: 22ch; }
.entete-page .lede{ max-width: 56ch; font-size: 1.05rem; margin-top: 1em; }

/* utility */
.mt-lg{ margin-top: clamp(32px,5vw,56px); }
.centre{ text-align: center; margin-left:auto; margin-right:auto; }

/* contact form */
.form-contact{
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: clamp(24px, 3vw, 40px);
}
.form-champ{ margin-bottom: 20px; }
.form-champ label{
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sauge);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-champ input,
.form-champ textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ligne);
  border-radius: 4px;
  background: #fff;
  color: var(--encre);
  font-family: inherit;
  font-size: 0.98rem;
  box-sizing: border-box;
}
.form-champ input:focus,
.form-champ textarea:focus{
  outline: none;
  border-color: var(--sauge);
}
.form-champ textarea{ resize: vertical; min-height: 130px; }
.form-ligne-double{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px){
  .form-ligne-double{ grid-template-columns: 1fr; }
}
.form-statut{
  margin-top: 16px;
  font-size: 0.92rem;
  display: none;
}
.form-statut.ok{ color: #4a7c5c; display: block; }
.form-statut.err{ color: #a5473a; display: block; }
.form-champ input:invalid[data-touched="true"]{ border-color: #a5473a; }
