/* =========================================================
   EEG Genève — feuille de style
   Palette reprise du site actuel eegg.org, maquette Claude Design.
   ========================================================= */

:root{
  --navy:#1b1b70;
  --indigo:#2e2ec3;
  --green:#68a94a;
  --green-dark:#3c622b;
  --green-pale:#eaf3e4;
  --indigo-pale:#e9e9f8;
  --bg:#f2f3f2;
  --ink:#292e2b;
  --muted:#5b6058;
  --line:#e4e6e2;
  --white:#fff;
  --header-h:76px;
  --pad-x:22px;
  --maxw:1200px;
  --radius:16px;
  --grad: linear-gradient(120deg,var(--green),var(--indigo));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Work Sans',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit}
::selection{background:var(--indigo);color:#fff}
h1,h2,h3{font-family:'Lora',Georgia,serif;font-weight:700;margin:0}
input,textarea,select,button{font-family:inherit}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--indigo)}

/* ---------- utilitaires ---------- */
.wrap{max-width:var(--maxw);margin:0 auto}
.section{padding:clamp(56px,9vw,110px) var(--pad-x)}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green-dark);margin-bottom:14px;display:block}
.h2{font-family:'Lora',serif;font-size:clamp(26px,3.6vw,38px);font-weight:700;color:var(--navy);margin:0}
.lead{font-size:16px;line-height:1.7;color:var(--muted)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:700;font-size:15px;padding:15px 28px;border-radius:28px;
  text-decoration:none;border:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.btn-grad{background:var(--grad);color:#fff;box-shadow:0 10px 24px rgba(46,46,195,.25)}
.btn-grad:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(46,46,195,.32)}
.btn-light{background:#fff;color:var(--navy);box-shadow:0 10px 24px rgba(0,0,0,.18)}
.btn-light:hover{transform:translateY(-2px)}
.btn-outline{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55)}
.btn-outline:hover{background:rgba(255,255,255,.1)}
.btn-block{width:100%}

/* apparition au scroll */
[data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
[data-reveal].is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}
@keyframes eeg-float{0%{transform:translate(0,0) rotate(0)}50%{transform:translate(10px,-14px) rotate(4deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes eeg-float-slow{0%{transform:translate(0,0) rotate(0)}50%{transform:translate(-14px,10px) rotate(-3deg)}100%{transform:translate(0,0) rotate(0)}}

/* ---------- header ---------- */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header__inner{max-width:1320px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 24px}
.header__logo{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--navy);flex:none}
.header__logo img{height:42px;width:auto}
.header__wordmark{display:flex;flex-direction:column;line-height:1.15}
.header__wordmark b{font-family:'Lora',serif;font-weight:700;font-size:16px;color:var(--navy)}
.header__wordmark span{font-size:9.5px;letter-spacing:.09em;color:var(--muted);text-transform:uppercase}
.nav{display:flex;align-items:center;gap:2px;background:#eef0eb;border-radius:30px;padding:5px}
.nav a{text-decoration:none;color:#3a3f38;font-size:14.5px;font-weight:600;padding:10px 16px;border-radius:24px;transition:background .2s ease,color .2s ease}
.nav a:hover{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(27,27,112,.08)}
.header__actions{display:flex;align-items:center;gap:14px}
.header__dons{text-decoration:none;color:var(--green-dark);font-size:13px;font-weight:600}
.header__dons:hover{color:var(--navy)}
.header__cta{white-space:nowrap}
.burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer}
.burger span{display:flex;flex-direction:column;gap:4px}
.burger i{width:20px;height:2px;background:var(--navy);border-radius:2px;display:block}

.drawer{position:fixed;inset:0;top:61px;background:#fff;z-index:99;display:none;flex-direction:column;padding:28px 24px;gap:4px;overflow-y:auto}
.drawer.open{display:flex}
.drawer a{text-decoration:none;color:var(--navy);font-family:'Lora',serif;font-size:21px;font-weight:600;padding:13px 4px;border-bottom:1px solid #eee}
.drawer .header__dons{border-bottom:none;color:var(--green-dark)}
.drawer .drawer__cta{margin-top:16px;text-align:center;padding:16px 20px;border-radius:26px;background:var(--grad);color:#fff}

@media (max-width:959px){
  .nav,.header__cta{display:none}
  .header__actions>.header__dons{display:none}
  .burger{display:flex}
  .header__inner{padding:10px 14px;gap:8px}
  .header__wordmark span{display:none}
  .header__logo{gap:8px}
  .header__logo img{height:32px}
  .header__wordmark b{font-size:15px}
}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:linear-gradient(155deg,var(--navy) 0%,#23297f 45%,var(--indigo) 78%,#3f8f4d 130%);padding:clamp(56px,10vw,110px) 20px clamp(90px,14vw,130px)}
.hero__blob{position:absolute;border-radius:42% 58% 65% 35% / 45% 45% 55% 55%}
.hero__blob--1{top:-120px;right:-100px;width:420px;height:420px;background:radial-gradient(circle at 30% 30%,rgba(104,169,74,.55),rgba(104,169,74,0) 70%);animation:eeg-float 14s ease-in-out infinite}
.hero__blob--2{bottom:-140px;left:-120px;width:380px;height:380px;background:radial-gradient(circle at 60% 40%,rgba(255,255,255,.1),rgba(255,255,255,0) 70%);animation:eeg-float-slow 18s ease-in-out infinite}
.hero__inner{position:relative;max-width:840px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:22px}
.hero__badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#eaf3e4;font-size:13px;font-weight:600;letter-spacing:.04em;padding:7px 16px;border-radius:20px}
.hero h1{color:#fff;font-size:clamp(32px,5.4vw,58px);line-height:1.12;text-wrap:balance}
.hero p{font-size:clamp(16px,2vw,20px);line-height:1.6;color:#e3e6f5;max-width:560px;margin:0}
.hero__cta{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:6px}

.reassure-bar{position:relative;max-width:920px;margin:clamp(40px,7vw,64px) auto 0;background:#fff;border-radius:20px;box-shadow:0 20px 50px rgba(15,15,60,.22);padding:22px clamp(16px,4vw,36px);display:flex;flex-wrap:wrap;gap:22px;align-items:center;justify-content:space-around}
.reassure{display:flex;align-items:center;gap:12px}
.reassure__icon{width:40px;height:40px;flex:none;border-radius:12px;background:var(--grad);display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Lora',serif;font-weight:700;font-size:15px}
.reassure__label{font-size:12px;color:var(--muted)}
.reassure__value{font-size:17px;font-weight:700;color:var(--navy)}
.reassure-sep{width:1px;height:34px;background:var(--line)}
@media (max-width:640px){.reassure-sep{display:none}}

/* ---------- bonne nouvelle ---------- */
.bn{background:#fff}
.bn__grid{max-width:1080px;margin:0 auto;display:flex;flex-wrap:wrap;gap:clamp(32px,6vw,64px);align-items:center}
.bn__mark{flex:1 1 320px;min-height:260px;display:flex;align-items:center;justify-content:center}
.bn__drop{width:min(320px,80vw);height:min(320px,80vw);border-radius:52% 48% 46% 54% / 58% 55% 45% 42%;transform:rotate(-5deg);background:linear-gradient(160deg,#8ec96a 0%,var(--green) 28%,#2e6fb0 68%,var(--navy) 100%);display:flex;align-items:center;justify-content:center;box-shadow:0 30px 60px rgba(27,27,112,.18)}
.bn__cross{width:14%;height:56%;background:#fff;border-radius:6px;position:relative;transform:rotate(5deg)}
.bn__cross::after{content:"";position:absolute;top:26%;left:-155%;width:410%;height:20%;background:#fff;border-radius:6px}
.bn__text{flex:1 1 380px;display:flex;flex-direction:column;gap:16px}
.bn__text h2{line-height:1.2}
.bn__text p{font-size:16px;line-height:1.75;color:#3a3f38;margin:0}
.link-arrow{text-decoration:none;color:var(--navy);font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:6px;margin-top:6px;transition:gap .2s ease}
.link-arrow:hover{gap:10px}

/* ---------- activités ---------- */
.activites{background:var(--bg)}
.section-head{max-width:640px;margin:0 auto 48px;text-align:center;display:flex;flex-direction:column;gap:10px}
.section-head p{font-size:16px;line-height:1.6;color:var(--muted);margin:0}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.card{background:#fff;border-radius:18px;padding:26px 22px;display:flex;flex-direction:column;gap:12px;box-shadow:0 4px 16px rgba(27,27,112,.06);transition:transform .2s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(27,27,112,.12)}
.card__icon{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Lora',serif;font-weight:700;font-size:17px}
.card h3{font-size:19px;font-weight:600;color:var(--navy)}
.card__tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:11px;font-weight:600;padding:4px 10px;border-radius:12px}
.tag--green{color:var(--green-dark);background:var(--green-pale)}
.tag--indigo{color:var(--navy);background:var(--indigo-pale)}
.card p{font-size:14.5px;line-height:1.6;color:var(--muted);margin:0}

/* ---------- agenda ---------- */
.agenda{background:#fff}
.agenda__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:36px}
.agenda__head .h2{margin-top:14px}
.event{background:var(--bg);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line)}
.event__top{display:flex;align-items:center;gap:12px}
.event__date{width:52px;height:52px;flex:none;border-radius:14px;background:var(--grad);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.event__date b{font-size:17px;font-weight:700}
.event__date span{font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.event__title{font-size:15px;font-weight:700;color:var(--navy)}
.event__time{font-size:13px;color:var(--muted)}
.event p{font-size:14px;line-height:1.55;color:var(--muted);margin:0}
.agenda-empty{text-align:center;padding:56px 24px;background:var(--bg);border-radius:20px;border:1px dashed #cfd3cb;display:flex;flex-direction:column;align-items:center;gap:14px}
.agenda-empty__mark{width:56px;height:56px;border-radius:42% 58% 65% 35% / 45% 45% 55% 55%;background:var(--grad);opacity:.85}
.agenda-empty p{font-size:16px;color:var(--muted);margin:0;max-width:360px}
.agenda__more{text-align:center;margin-top:36px}

/* ---------- à propos ---------- */
.propos{background:var(--bg)}
.propos__inner{max-width:1120px;margin:0 auto;display:flex;flex-direction:column;gap:56px}
.pasteur-card{display:flex;flex-wrap:wrap;gap:clamp(28px,5vw,56px);align-items:center;background:#fff;border-radius:24px;padding:clamp(28px,5vw,48px);box-shadow:0 6px 20px rgba(27,27,112,.06)}
.avatar{flex:none;width:96px;height:96px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Lora',serif;font-weight:700;font-size:32px;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.pasteur-card__text{flex:1 1 380px;display:flex;flex-direction:column;gap:12px}
.pasteur-card blockquote{font-family:'Lora',serif;font-style:italic;font-size:clamp(18px,2.4vw,22px);line-height:1.6;color:var(--navy);margin:0}
.team h2{text-align:center;margin-bottom:24px}
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:24px;max-width:800px;margin:0 auto}
.member{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.member .avatar{width:84px;height:84px;font-size:26px}
.member__name{font-weight:700;font-size:15px;color:var(--navy)}
.member__role{font-size:13px;color:var(--muted)}
.values{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}
.value{flex:1 1 260px;max-width:360px;background:#fff;border-radius:18px;padding:24px;text-align:center}
.value b{display:block;font-family:'Lora',serif;font-weight:700;font-size:17px;color:var(--navy);margin-bottom:8px}
.value span{font-size:14px;line-height:1.6;color:var(--muted)}

/* ---------- infos pratiques ---------- */
.infos{background:#fff}
.infos__grid{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;gap:clamp(28px,5vw,56px)}
.infos__col{flex:1 1 320px;display:flex;flex-direction:column;gap:18px}
.infos__name{font-weight:700;font-size:16px;color:var(--navy)}
.infos__addr{font-size:15px;color:#3a3f38}
.access{display:flex;flex-direction:column;gap:14px;margin-top:6px}
.access__row{display:flex;gap:12px;align-items:flex-start}
.access__ic{width:34px;height:34px;flex:none;border-radius:10px;background:var(--green-pale);color:var(--green-dark);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.access__row div{font-size:14.5px;color:#3a3f38;line-height:1.5}
.map-col{flex:1 1 320px;min-height:320px;border-radius:20px;background:repeating-linear-gradient(45deg,#eef0ec,#eef0ec 10px,#e6e9e3 10px,#e6e9e3 20px);display:flex;align-items:center;justify-content:center;overflow:hidden}
.map-col iframe{width:100%;height:100%;min-height:320px;border:0;display:block}
.map-placeholder{background:#fff;padding:14px 20px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.1);font-family:monospace;font-size:12.5px;color:var(--muted);text-align:center}

/* ---------- dons ---------- */
.dons{background:linear-gradient(120deg,var(--navy),var(--indigo) 60%,#3c8a4c);text-align:center}
.dons__inner{max-width:760px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:16px}
.dons h2{color:#fff}
.dons p{font-size:15.5px;line-height:1.7;color:#e3e6f5;margin:0;max-width:560px}
.dons small{font-size:12px;color:#c9cdec}

/* ---------- contact ---------- */
.contact{background:#fff}
.contact__grid{max-width:1000px;margin:0 auto;display:flex;flex-wrap:wrap;gap:clamp(28px,5vw,56px)}
.contact__col{flex:1 1 280px;display:flex;flex-direction:column;gap:16px}
.contact__coords{display:flex;flex-direction:column;gap:8px;margin-top:10px;font-size:14.5px;color:#3a3f38}
.card-form{flex:1 1 340px;display:flex;flex-direction:column;gap:14px;background:var(--bg);padding:26px;border-radius:18px}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3a3f38}
.field input,.field textarea{padding:12px 14px;border-radius:10px;border:1px solid #d7dad3;font-size:15px;font-family:inherit;background:#fff}
.field textarea{resize:vertical}
.consent{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:var(--muted);line-height:1.5;font-weight:400}
.consent input{margin-top:2px;flex:none}
.form-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-status{margin-top:2px;font-size:14px;font-weight:600;display:none}
.form-status.err{display:block;color:#b3261e}
.form-ok{display:none;background:var(--green-pale);border-radius:18px;padding:32px;flex-direction:column;gap:8px}
.form-ok.show{display:flex}
.form-ok b{color:var(--green-dark);font-size:17px}
.form-ok span{font-size:14px;color:#3a3f38}

/* ---------- footer ---------- */
.footer{background:var(--navy);color:#dfe0f2;padding:56px 20px 28px}
.footer__grid{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;gap:36px;justify-content:space-between}
.footer__brand{flex:1 1 240px;display:flex;flex-direction:column;gap:12px}
.footer__brand-top{display:flex;align-items:center;gap:10px}
.footer__brand-top img{height:36px}
.footer__brand-top b{font-family:'Lora',serif;font-weight:700;font-size:15px;color:#fff}
.footer p{font-size:13.5px;line-height:1.6;color:#b9bce0;margin:0}
.footer__col{flex:1 1 160px;display:flex;flex-direction:column;gap:10px}
.footer__col-title{font-size:13px;font-weight:700;color:#fff;margin-bottom:4px}
.footer a{color:#b9bce0;text-decoration:none;font-size:13.5px}
.footer a:hover{color:#fff}
.footer__bottom{max-width:1120px;margin:36px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:#9297c4;text-align:center}

/* ---------- page ressources ---------- */
.res-hero{background:linear-gradient(155deg,var(--navy) 0%,#23297f 45%,var(--indigo) 78%,#3f8f4d 130%);padding:clamp(56px,9vw,90px) 20px;text-align:center}
.res-hero h1{color:#fff;font-family:'Lora',serif;font-size:clamp(30px,4.4vw,44px);margin:0 0 12px}
.res-hero p{color:#e3e6f5;font-size:16px;max-width:560px;margin:0 auto}
.res-nav{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:26px}
.res-nav a{text-decoration:none;color:#fff;font-weight:600;font-size:14px;padding:10px 18px;border-radius:20px;border:1px solid rgba(255,255,255,.35)}
.res-nav a:hover{background:rgba(255,255,255,.12)}

.res-list{display:flex;flex-direction:column;gap:14px;max-width:760px;margin:0 auto}
.audio-item{background:#fff;border-radius:16px;padding:20px 22px;box-shadow:0 4px 16px rgba(27,27,112,.06);display:flex;flex-direction:column;gap:10px}
.audio-item__title{font-weight:700;color:var(--navy);font-size:16px}
.audio-item__meta{font-size:13px;color:var(--muted)}
.audio-item audio{width:100%}
.doc-item{background:#fff;border-radius:16px;padding:18px 22px;box-shadow:0 4px 16px rgba(27,27,112,.06);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.doc-item__name{font-weight:700;color:var(--navy);font-size:15px}
.doc-item__meta{font-size:13px;color:var(--muted)}
.doc-item a{text-decoration:none;color:#fff;font-weight:600;font-size:13.5px;padding:10px 18px;border-radius:20px;background:var(--grad);white-space:nowrap}

.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;max-width:1000px;margin:0 auto}
.photo-item{border:none;padding:0;cursor:pointer;border-radius:14px;overflow:hidden;height:170px;background:var(--bg)}
.photo-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.photo-item:hover img{transform:scale(1.06)}

.lightbox{position:fixed;inset:0;z-index:200;background:rgba(8,7,20,.92);display:none;align-items:center;justify-content:center;padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:86vh;border-radius:8px;object-fit:contain}
.lightbox__close{position:absolute;top:22px;right:22px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);color:#fff;width:48px;height:48px;border-radius:50%;font-size:22px;cursor:pointer}

.res-empty{text-align:center;padding:48px 24px;background:var(--bg);border-radius:20px;border:1px dashed #cfd3cb;color:var(--muted);max-width:760px;margin:0 auto}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:899px){
  .cards-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .cards-grid{grid-template-columns:1fr}
  .footer__grid{gap:28px}
}
