/* ============================================================
   Iteractif — style global unique (www + download + pages légales)
   Tokens : papier crème + grille, encre #16181d, rouge #613583,
   titres Georgia, boutons pilules, cartes à liseré rouge.
   ============================================================ */
:root{
  --accent:#613583;
  --ink:#16181d;
  --grey:#5b6470;
  --paper:#fbfbf9;
  --card:#ffffff;
  --line:#e8e4da;
  --font:Georgia,"Times New Roman",serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--sans);
  min-height:100vh;
  background:
    repeating-linear-gradient(0deg,transparent 0 23px,rgba(22,24,29,.035) 23px 24px),
    repeating-linear-gradient(90deg,transparent 0 23px,rgba(22,24,29,.035) 23px 24px),
    var(--paper);
  color:var(--ink);
  line-height:1.6;
  display:flex;
  flex-direction:column;
  -webkit-font-smoothing:antialiased;
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--accent);color:#fff;font-weight:600;
  padding:.6rem 1.2rem;border-radius:0 0 10px 0;text-decoration:none;
}
.skip-link:focus{left:0;outline:3px solid var(--ink);outline-offset:2px}

/* ===== Header ===== */
.bar-top{height:5px;background:var(--accent)}
header{padding:2.2rem 1.5rem 1rem;text-align:center;position:relative}
.logo{width:min(240px,68%);height:auto;filter:drop-shadow(0 4px 14px rgba(97,53,131,.14))}

/* ===== Navigation ===== */
.nav-toggle{
  display:block;position:absolute;top:1.1rem;right:1.1rem;
  width:2.7rem;height:2.7rem;border-radius:10px;
  border:1.5px solid var(--line);background:var(--card);color:var(--ink);
  font-size:1.3rem;line-height:1;cursor:pointer;
  transition:color .15s,background .15s,border-color .15s;
}
.nav-toggle:hover{border-color:var(--accent);color:var(--accent)}
.nav-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
nav{
  display:none;
  margin:1.4rem auto 0;padding:0 1rem;
}
nav.open{
  display:flex;justify-content:center;gap:.4rem;flex-wrap:wrap;
}
.navitem{
  font-size:.82rem;font-weight:600;letter-spacing:.04em;
  color:var(--ink);text-decoration:none;
  padding:.5rem .95rem;border-radius:8px;border-bottom:3px solid transparent;
  transition:color .15s,background .15s,border-color .15s;
}
.navitem:hover{color:var(--accent);background:rgba(97,53,131,.06)}
.navitem.active{color:var(--accent);border-bottom-color:var(--accent);background:rgba(97,53,131,.06)}
.navitem:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ===== Bloc membre (connecté) ===== */
.nav-member{
  display:flex;align-items:center;gap:.7rem;
  margin:1rem auto 0;padding:.6rem .9rem;
  border:1.5px solid var(--line);border-radius:999px;background:var(--card);
}
.nav-avatar{
  width:36px;height:36px;border-radius:50%;
  border:2px solid var(--accent);object-fit:cover;flex:none;
}
.nav-member-info{display:flex;flex-direction:column;line-height:1.25;text-align:left}
.nav-login{font-size:.85rem;font-weight:700;color:var(--ink)}
.nav-compte{font-size:.75rem;color:var(--accent);text-decoration:none}
.nav-compte:hover{text-decoration:underline}
.nav-logout{
  margin-left:auto;font-size:.72rem;font-weight:600;color:var(--grey);
  background:none;border:1px solid var(--line);border-radius:999px;
  padding:.3rem .7rem;cursor:pointer;transition:color .15s,border-color .15s;
}
.nav-logout:hover{color:var(--accent);border-color:var(--accent)}

/* ===== Contenu ===== */
main{flex:1;padding:1.4rem 1.5rem 2.8rem}
.wrap{max-width:980px;margin:0 auto}
section{display:none}
section.active{display:block;animation:fadein .25s ease}
@keyframes fadein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ===== Typo ===== */
.kicker{
  display:inline-block;font-size:.78rem;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:1.2rem;
}
h1{
  font-family:var(--font);font-weight:400;
  font-size:clamp(2rem,4.6vw,2.7rem);letter-spacing:-.01em;line-height:1.2;margin-bottom:.9rem;
}
h1 em{color:var(--accent);font-style:italic}
h2.section-title{
  font-family:var(--font);font-weight:400;
  font-size:clamp(2rem,4.6vw,2.7rem);letter-spacing:-.01em;line-height:1.2;margin-bottom:.9rem;
}
h2.section-title em{color:var(--accent);font-style:italic}
.lead{font-size:1.02rem;color:var(--grey);max-width:56ch;line-height:2;margin-bottom:2rem}

/* ===== Hero ===== */
.hero{text-align:center;padding:.6rem 0 2rem}
.hero .badge{
  display:inline-flex;align-items:center;gap:.4rem;
  background:rgba(97,53,131,.08);color:var(--accent);
  font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:.35rem 1rem;border-radius:999px;margin-bottom:1.3rem;
  border:1px solid rgba(97,53,131,.18);
}
.hero .badge .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);display:inline-block;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.hero .cta-row{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap;margin-bottom:.8rem}

/* ===== Boutons ===== */
.cta{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--accent);color:#fff;padding:.78rem 1.7rem;border-radius:999px;
  font-family:var(--sans);font-weight:600;font-size:.95rem;text-decoration:none;
  box-shadow:0 6px 18px rgba(97,53,131,.26);
  transition:transform .15s,box-shadow .15s,background .15s;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(97,53,131,.38);background:#4a2763}
.cta:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cta svg{width:17px;height:17px;flex:none}
.cta.ghost{background:transparent;color:var(--accent);border:1.5px solid var(--accent);box-shadow:none}
.cta.ghost:hover{background:rgba(97,53,131,.06);box-shadow:none}
.cta.small{padding:.45rem .8rem;font-size:.85rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--accent);color:#fff;padding:.78rem 1.5rem;border-radius:999px;
  font-family:var(--sans);font-weight:600;font-size:.95rem;border:none;cursor:pointer;
  box-shadow:0 6px 18px rgba(97,53,131,.26);
  transition:transform .15s,box-shadow .15s,background .15s;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(97,53,131,.38);background:#4a2763}
.btn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--accent);border:1.5px solid var(--accent);
  border-radius:999px;padding:.6rem 1.2rem;cursor:pointer;font-weight:600;font-size:.9rem;
  transition:background .15s;
}
.btn-ghost:hover{background:rgba(97,53,131,.06)}

/* ===== Cartes ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.4rem;margin-top:1.6rem}
.item{
  display:flex;flex-direction:column;gap:.7rem;text-align:left;
  background:var(--card);border:1px solid var(--line);border-top:5px solid var(--accent);
  border-radius:16px;padding:1.5rem 1.4rem 1.4rem;
  box-shadow:0 18px 44px rgba(22,24,29,.08),0 2px 6px rgba(22,24,29,.04);
  transition:transform .18s,box-shadow .18s;
}
.item:hover{transform:translateY(-4px);box-shadow:0 24px 52px rgba(22,24,29,.12),0 4px 10px rgba(22,24,29,.06)}
.item .icon{
  width:46px;height:46px;border-radius:12px;
  background:linear-gradient(135deg,rgba(97,53,131,.10),rgba(97,53,131,.02));
  border:1px solid rgba(97,53,131,.14);
  display:flex;align-items:center;justify-content:center;margin-bottom:.1rem;
}
.item .icon svg{width:24px;height:24px;color:var(--accent)}
.item h2{font-family:var(--font);font-weight:400;font-size:1.2rem;line-height:1.25}
.item p{font-size:.9rem;color:var(--grey);line-height:1.7;flex:1}
.card{
  background:var(--card);border:1px solid var(--line);border-top:5px solid var(--accent);
  border-radius:16px;padding:2.4rem 2.2rem 2.2rem;
  box-shadow:0 18px 44px rgba(22,24,29,.08),0 2px 6px rgba(22,24,29,.04);
  max-width:640px;margin:0 auto;
}
.card p{color:var(--grey);line-height:1.9;margin-bottom:1rem}
.card .strong{color:var(--ink);font-weight:600}
.card h2{font-size:.72rem;font-weight:700;letter-spacing:.18em;color:var(--accent);text-transform:uppercase;margin-bottom:1rem}

/* ===== Formulaires ===== */
.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1.1rem}
.field span,.field label{font-size:.8rem;font-weight:600;color:var(--grey);letter-spacing:.03em;text-transform:uppercase}
.field input,.field textarea,.field select,input,select{
  font-family:var(--sans);font-size:.95rem;color:var(--ink);
  padding:.6rem .8rem;border:1.5px solid var(--line);border-radius:10px;
  background:#fff;transition:border-color .15s,box-shadow .15s;
}
.field input:focus,.field textarea:focus,.field select:focus,input:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(97,53,131,.12)}
.field textarea{resize:vertical;min-height:96px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.captcha-row{flex-direction:row;align-items:center;gap:.6rem;flex-wrap:wrap}
.captcha-row .field-captcha{text-transform:none;letter-spacing:0;font-size:.85rem;color:var(--grey)}
.ld-question{font-weight:700;color:var(--ink);background:rgba(97,53,131,.07);border:1px dashed rgba(97,53,131,.35);border-radius:8px;padding:.35rem .8rem;font-size:.95rem}
.ld-captcha-input{width:110px}
.captcha-inputs{display:flex;gap:.6rem;align-items:center}
.captcha-inputs input{flex:1;min-width:0}
.form-status{font-size:.88rem;color:var(--grey);margin:.2rem 0 .8rem}
.form-status.ok{color:#157a3e}
.form-status.err{color:var(--accent)}
.form-note{font-size:.8rem;color:var(--grey);margin-top:.9rem;text-align:center}
.form-note a{color:var(--accent);text-decoration:none;border-bottom:1px solid transparent}
.form-note a:hover{border-bottom-color:var(--accent)}
.msg{font-size:.85rem;min-height:1.1rem;color:var(--grey)}
.msg.ok{color:#157a3e}
.msg.err{color:var(--accent)}
.check{display:flex;gap:.5rem;align-items:flex-start;font-size:.83rem;color:var(--grey);line-height:1.45;margin-bottom:.8rem}
.check input{margin-top:.15rem;width:auto;border-color:var(--line)}
.check a{color:var(--accent);text-decoration:none;border-bottom:1px solid transparent}
.check a:hover{border-bottom-color:var(--accent)}

/* ===== Livre d'or ===== */
.livredor{margin-top:2.2rem;display:flex;flex-direction:column;gap:1rem}
.livredor .empty{color:var(--grey);font-style:italic;text-align:center;padding:1rem 0}
.ld-entry{background:var(--card);border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:14px;padding:1.1rem 1.3rem;box-shadow:0 10px 26px rgba(22,24,29,.06)}
.ld-entry .head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.4rem}
.ld-entry .pseudo{font-family:var(--font);font-weight:400;font-size:1.05rem;color:var(--ink)}
.ld-entry .date{font-size:.78rem;color:var(--grey);white-space:nowrap}
.ld-entry .msg{font-size:.92rem;color:var(--grey);line-height:1.7;white-space:pre-wrap;word-break:break-word}

/* ===== Contact ===== */
.contact-list{list-style:none;margin-top:.4rem}
.contact-list li{display:flex;align-items:center;gap:.7rem;padding:.55rem 0;border-bottom:1px dashed var(--line)}
.contact-list li:last-child{border-bottom:none}
.contact-list svg{width:18px;height:18px;color:var(--accent);flex:none}
.contact-list a{color:var(--ink);text-decoration:none;border-bottom:1px solid transparent}
.contact-list a:hover{color:var(--accent);border-bottom-color:var(--accent)}
.contact-list .small{font-size:.82rem;color:var(--grey)}

/* ===== Modale connexion / inscription ===== */
.modal-backdrop{
  position:fixed;inset:0;z-index:300;
  background:rgba(22,24,29,.55);backdrop-filter:blur(3px);
  display:flex;align-items:flex-start;justify-content:center;
  padding:6vh 1rem 2rem;overflow-y:auto;
}
.modal-card{
  background:var(--card);border:1px solid var(--line);border-top:5px solid var(--accent);
  border-radius:16px;padding:1.8rem 1.7rem 1.6rem;width:100%;max-width:480px;
  box-shadow:0 24px 60px rgba(22,24,29,.25);
  animation:fadein .2s ease;
}
.modal-card h2{font-size:.72rem;font-weight:700;letter-spacing:.18em;color:var(--accent);text-transform:uppercase;margin-bottom:1rem}
.modal-close{
  float:right;background:none;border:none;color:var(--grey);font-size:1.4rem;line-height:1;
  cursor:pointer;padding:.2rem .4rem;border-radius:8px;transition:color .15s;
}
.modal-close:hover{color:var(--accent)}
.tabs{display:flex;gap:.4rem;margin-bottom:1.3rem;border-bottom:2px solid var(--line);padding-bottom:.4rem;width:fit-content}
.tab{
  background:transparent;border:none;border-radius:8px 8px 0 0;
  padding:.5rem 1rem;cursor:pointer;color:var(--grey);font-weight:600;font-size:.9rem;
  border-bottom:3px solid transparent;transition:color .15s,background .15s,border-color .15s;
}
.tab:hover{color:var(--accent);background:rgba(97,53,131,.06)}
.tab.active{color:var(--accent);border-bottom-color:var(--accent);background:rgba(97,53,131,.06)}
.tabpane{display:flex;flex-direction:column;gap:.85rem}
.tabpane .field{margin-bottom:0}

/* ===== Pages légales ===== */
.legal{max-width:760px;margin:0 auto;padding:2rem 1.5rem 3rem}
.legal h1{font-size:1.7rem;color:var(--accent);margin-bottom:.4rem}
.legal h2{font-size:1.15rem;margin:1.6rem 0 .5rem;color:var(--ink)}
.legal p,.legal li{font-size:.95rem;color:var(--grey);margin-bottom:.5rem}
.legal ul{padding-left:1.2rem;margin-bottom:1rem}
.legal a{color:var(--accent)}
.legal .muted{font-size:.85rem;color:var(--grey)}

/* ===== 404 ===== */
.err404{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 1rem}
.err404 h1{font-size:clamp(2.4rem,6vw,3.4rem);font-weight:700;color:var(--accent);margin-bottom:.6rem}
.err404 p{color:var(--grey);max-width:46ch;margin-bottom:1.8rem}

/* ===== Footer ===== */
.bar-bottom{height:5px;width:100%;background:linear-gradient(90deg,transparent,var(--accent) 25%,var(--accent) 75%,transparent)}
.site-footer{padding:1.4rem 0 2.2rem;font-size:.85rem;color:var(--ink);text-align:center}
.site-footer a{color:var(--ink);text-decoration:none;font-variant-numeric:tabular-nums}
.site-footer a:hover{text-decoration:underline}
.site-footer a:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}

/* ===== Responsive ===== */
@media (prefers-reduced-motion:reduce){.cta,.item,.navitem,.nav-toggle,.btn,.btn-ghost,.tab{transition:none}html{scroll-behavior:auto}.hero .badge .dot{animation:none}}
@media (max-width:520px){.ld-entry .head{flex-direction:column;gap:.15rem}.ld-entry .date{white-space:normal}}
@media (max-width:480px){
  header{padding-top:1.6rem}
  nav.open{flex-direction:column;align-items:stretch;gap:.3rem;margin-top:1rem}
  .navitem{padding:.5rem .95rem;font-size:.82rem;border-bottom:2px solid var(--line);border-radius:8px;text-align:left}
  .navitem.active{border-bottom-color:var(--accent)}
  .card{padding:1.8rem 1.3rem 1.6rem}
  .row2{grid-template-columns:1fr}
}
