
:root{
  --bg:#f5efe2;
  --surface:#fffaf2;
  --surface-2:#fffdfa;
  --text:#193335;
  --muted:#6d6d63;
  --line:#e7dcc9;
  --primary:#0a5b59;
  --primary-2:#0f7366;
  --accent:#f4aa4f;
  --accent-2:#8d2424;
  --shadow:0 10px 26px rgba(45,24,5,.10);
  font-family:system-ui,-apple-system,Segoe UI,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#1d4c4a 0%,#d98536 35%,#f8e8c9 100%);
}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#204845 0,#cf7c31 42%,#f7ecda 100%);min-height:100vh}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
a{color:inherit}
.app{max-width:860px;margin:auto;min-height:100dvh;background:linear-gradient(180deg,rgba(255,251,245,.98),rgba(255,248,238,.98));padding-bottom:92px;box-shadow:0 14px 40px rgba(0,0,0,.12)}
.hero{position:relative;padding:20px 18px 22px;color:white;border-radius:0 0 30px 30px;overflow:hidden;background:
linear-gradient(180deg,rgba(7,56,54,.74),rgba(8,39,38,.66)),
radial-gradient(circle at 80% 18%,rgba(255,177,80,.55),transparent 28%),
linear-gradient(180deg,#184945 0%,#2c6758 45%,#d87c2b 100%);
background-position:center;background-size:cover;min-height:230px;
}
.hero::after{content:"";position:absolute;inset:auto -10% -60px -10%;height:130px;background:radial-gradient(ellipse at center,rgba(255,196,95,.55),transparent 70%);pointer-events:none}
.hero-content{position:relative;z-index:1}
.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.branding-wrap{display:flex;gap:14px;align-items:flex-start;min-width:0}
.hero-logo{width:78px;height:78px;object-fit:cover;border-radius:22px;background:rgba(255,251,244,.92);padding:6px;box-shadow:0 8px 24px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.45)}
.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:11px;opacity:.88;font-weight:800;color:#ffe6b7}
.hero h1{font-size:31px;letter-spacing:-1px;margin:6px 0 7px;text-shadow:0 3px 14px rgba(0,0,0,.24)}
.hero p{opacity:.96;font-size:14px;line-height:1.5;margin:0;max-width:540px;color:#fff4df}
.name{font-size:12px;border:1px solid rgba(255,255,255,.35);background:rgba(4,36,34,.20);backdrop-filter:blur(8px);border-radius:999px;padding:7px 11px;white-space:nowrap}
.hero .quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.hero .quick-links button{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(255,255,255,.18);background:rgba(2,43,41,.58);color:#fff7ea;border-radius:16px;padding:13px 12px;font-weight:800;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.hero .quick-links button span{font-size:18px}
.main{padding:18px 16px}
.head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:5px 0 15px}.head h2{font-size:22px;margin:0;letter-spacing:-.5px;color:#14393b}
.cards{display:grid;gap:13px}.card{background:var(--surface-2);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}.body{padding:18px}
.pill{font-size:11px;font-weight:800;background:#e2f0ea;color:#0b685f;padding:7px 10px;border-radius:999px;display:inline-block}.pill.warm{background:#fff0d5;color:#9b6318}
.title{font-size:21px;font-weight:850;letter-spacing:-.5px;margin:13px 0 10px;color:#11393a}.meta{color:#68716b;font-size:13px;margin:8px 0;line-height:1.45}
.btn{border:none;border-radius:13px;background:linear-gradient(180deg,var(--primary-2),var(--primary));color:white;font-weight:780;padding:12px 15px;min-height:44px;box-shadow:0 8px 16px rgba(11,93,83,.16)}
.btn.soft{background:#efe6d8;color:#225654;box-shadow:none}.btn.danger{background:#ffefef;color:#aa3838;box-shadow:none}.btn.full{width:100%}.btn.small{font-size:12px;min-height:36px;padding:8px 12px}
.actions{display:flex;gap:8px;margin-top:16px}.actions>*{flex:1}
.nav{position:fixed;bottom:0;left:0;right:0;max-width:860px;margin:auto;display:flex;background:rgba(255,251,246,.97);border-top:1px solid #eadfce;box-shadow:0 -6px 20px rgba(30,47,34,.10);padding:9px 8px max(10px,env(safe-area-inset-bottom));justify-content:space-around;backdrop-filter:blur(10px)}
.nav button{background:none;border:none;color:#7b7469;font-size:11px;font-weight:800;min-width:0;flex:1;padding:2px}.nav button.active{color:#0c6b61}.nav b{display:block;font-size:21px;margin-bottom:3px}
.back{background:none;border:0;color:#0b5d59;font-weight:800;padding:5px 0 17px}.seg{display:flex;gap:5px;padding:5px;border-radius:13px;background:#f0e7d8}.seg button{flex:1;padding:11px 4px;border:0;border-radius:10px;background:transparent;color:#726d65;font-weight:750}.seg .chosen{background:#fff;color:#0a605c;box-shadow:0 2px 9px rgba(14,66,48,.12)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.stat{background:#f6ecdf;text-align:center;padding:13px 5px;border-radius:12px;font-size:12px;color:#796a5a}.stat b{display:block;color:#0b675c;font-size:23px}
.line{padding:12px 0;border-bottom:1px solid #f0ebe3;display:flex;justify-content:space-between;gap:10px;font-size:14px}.label{font-size:13px;font-weight:800;color:#425e63;margin-bottom:5px;display:block}.field{display:block;margin:0 0 14px}input,textarea,select{padding:13px;border:1px solid #d8c8b4;border-radius:12px;background:#fffdf9;width:100%;color:#193c3e}textarea{min-height:95px;resize:vertical}.section{font-size:19px;margin:22px 1px 12px;color:#1c403f}.muted{color:#6d736c;font-size:13px;line-height:1.55}
.bubble{max-width:92%;padding:11px 14px;background:#fff;border:1px solid #eee2d3;border-radius:14px;margin:10px 0}.bubble.me{margin-left:auto;background:#e5f1eb;border:0}.bubble small{font-size:11px;font-weight:800;color:#7f4c15}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:4px 0}
.chat-form{display:flex;gap:7px}.chat-form input{flex:1;min-width:0}
.empty{padding:30px;background:var(--surface-2);border:1px dashed #dbc8aa;border-radius:16px;text-align:center;color:#7a6f63}.notice{border-radius:14px;background:#fff3dd;padding:15px;color:#7b531c;font-size:13px;line-height:1.5}.error{color:#a42727;background:#ffebeb;padding:11px;border-radius:11px;margin:9px 0}
.person{display:flex;gap:10px;justify-content:space-between;align-items:center;border-bottom:1px solid #eee5da;padding:12px 0}.person .txt{min-width:0}.person .txt small{display:block;color:#7a7d74;margin-top:3px}.person .controls{display:flex;gap:5px}
.login{max-width:520px;margin:0 auto;padding:40px 20px;min-height:100dvh;display:flex;flex-direction:column;justify-content:center}.login h1{font-size:30px;margin:12px 0 8px;color:#17393c}.login-logo{width:110px;height:110px;border-radius:28px;background:#fff6eb;padding:8px;box-shadow:0 12px 28px rgba(0,0,0,.14);object-fit:contain}.tag{background:#f6ecdf;color:#7f5b24;font-size:12px;padding:5px 10px;border-radius:30px}.bottom-note{margin-top:18px;font-size:12px;color:#82918e}
.hero-banner-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,43,41,.72),rgba(12,44,42,.35),rgba(27,43,31,.22));pointer-events:none}
.banner-preview{display:block;width:100%;max-height:210px;object-fit:cover;border-radius:14px;margin:12px 0;border:1px solid #e8dfd3}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.photo-tile{overflow:hidden;border-radius:14px;background:#fff;border:1px solid #ebdfd0}.photo-tile img{display:block;width:100%;height:145px;object-fit:cover}.photo-caption{padding:9px;font-size:12px}.photo-actions{display:flex;justify-content:space-between;gap:5px;margin-top:7px;flex-wrap:wrap}.photo-actions a{color:#086774;font-weight:700;text-decoration:none}.photo-actions button{border:0;background:none;color:#9b3737;font-size:12px}
.brand-mini{display:inline-flex;align-items:center;gap:8px}.brand-mini img{width:36px;height:36px;border-radius:12px;background:#fffdf7;padding:3px;border:1px solid #efe4d1}.title-row{display:flex;gap:8px;align-items:center}.title-row .title{margin:0}
@media(min-width:680px){.main{padding:26px}.cards{grid-template-columns:repeat(2,1fr)}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{padding:24px 24px 26px;min-height:250px}.hero-logo{width:88px;height:88px}}

/* V7 : mobile-first design matching the approved reference */
:root{--forest:#003b37;--forest2:#075b50;--green:#098057;--cream:#fffaf4;--ink:#172b29;--line:#e8e7df;--gold:#f0b45b;}
html{background:#042e2c}body{background:#052f2b;color:var(--ink)}
.app{max-width:620px;min-height:100dvh;background:#fffdf9;padding-bottom:calc(80px + env(safe-area-inset-bottom));box-shadow:0 0 50px #0002}
.hero{border-radius:0;box-shadow:none;color:#fff;position:relative;background:#003a38;overflow:hidden}
.hero-home{min-height:clamp(360px,64dvh,620px);border-radius:0 0 25px 25px;background-image:linear-gradient(180deg,#082e3899 0%,#103f3933 45%,#001f20d4 100%),url('lake-sunset.jpg');background-position:center;background-size:cover}
.hero-home .hero-content{min-height:inherit;display:flex;flex-direction:column;position:relative;z-index:2;justify-content:space-between}
.hero-inner{min-height:112px;border-radius:0 0 17px 17px;background:linear-gradient(130deg,#003b38,#0a6157);padding:22px 18px 18px}
.hero-inner .hero-logo{width:56px;height:56px;border-radius:14px}
.hero-inner h1{font-size:23px;margin:2px 0}
.hero-inner .eyebrow{font-size:9px}
.hero-home .hero-top{align-items:flex-start;flex-direction:column;gap:18px}
.hero-home .brand-identity{flex-direction:column;align-items:center;justify-content:center;width:100%;padding-top:19px;text-align:center}
.hero-home .hero-logo{width:128px;height:128px;padding:7px;border-radius:35px;box-shadow:0 12px 32px #0005;background:#fff7e4}
.hero-home h1{font-size:37px;margin:7px 0;letter-spacing:-1.4px;text-shadow:0 4px 12px #0009}
.hero-home .eyebrow{font-size:11px;letter-spacing:.07em;text-transform:none}
.hero-home .name{position:absolute;right:0;top:2px;background:#004b459c;border:1px solid #fff3}
.hero-home .home-welcome{text-align:center;margin:auto 0 18px;text-shadow:0 2px 8px #0008}
.hero-home .home-welcome p{font-weight:650;font-size:15px;color:white}
.brand-identity{display:flex;align-items:center;gap:12px;min-width:0}
.hero .quick-links{display:none}
.home-tiles{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:auto}
.home-tiles button{background:linear-gradient(155deg,#005a55,#003a39);color:#fff;border:1px solid #ffffff2d;border-radius:13px;font-size:13px;font-weight:750;padding:12px 8px;min-height:59px;box-shadow:0 5px 15px #0004}
.home-tiles span{display:block;font-size:22px;margin-bottom:2px}
.main{padding:18px 14px 22px;background:#fffdf9}
.on-home .main{background:#fffdf9}
.head h2{font-size:20px}.head{margin-top:0}
.cards{grid-template-columns:1fr;gap:13px}
.card{background:white;border:1px solid #eee9e0;border-radius:15px;box-shadow:0 4px 18px #003e3210}
.card .body{padding:14px}
.outing-card .outing-photo{width:100%;height:142px;background-size:cover;background-position:center;border:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:11px;cursor:pointer}
.date-chip{background:#003d38e0;border:1px solid #ffffff50;color:#fff;padding:6px 10px;border-radius:8px;font-size:12px;font-weight:850}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pill{background:#e8f5eb;color:#046e4b}.tag{background:#f1f5ed;color:#285344}
.title{font-size:20px;color:#102e2a;margin:9px 0 7px}
.btn{background:linear-gradient(180deg,#139565,#047548);border-radius:10px;min-height:43px;box-shadow:none}
.btn.soft{background:#e4f3e8;color:#046c52}
.seg{background:#f1f3ee}.seg .chosen{color:#075943}
input,textarea,select{border:1px solid #dcded5;border-radius:10px;background:#fff}
.nav{max-width:620px;background:#fff;z-index:80;border-top:1px solid #e5e5dd;box-shadow:0 -3px 20px #001c1716;padding:8px 6px max(9px,env(safe-area-inset-bottom))}
.nav button{color:#5b6862;font-size:10px;font-weight:650}
.nav b{font-size:23px;font-weight:700;line-height:1.05}
.nav button.active{color:#007851}
.bubble{background:#f4f4f1;border:0;border-radius:17px;box-shadow:0 1px 1px #0001}
.bubble.me{background:#e3f2e5}
.photo-grid{gap:7px}.photo-tile{border-radius:10px}
.person{border-color:#eee}
@media(min-width:680px){.app{max-width:620px}.cards{grid-template-columns:1fr 1fr}.hero-home{min-height:550px}}
@media(max-width:390px){.hero-home{min-height:390px}.hero-home .hero-logo{width:104px;height:104px}.hero-home h1{font-size:31px}.hero-home .eyebrow{font-size:10px}.name{font-size:10px}.nav button{font-size:9px}}

/* V8 — couvertures personnelles et messagerie mobile */
.outing-photo{background-color:#0b504b!important;position:relative}
.trip-cover-large{display:block;width:100%;height:210px;object-fit:cover;border-radius:14px;margin-bottom:14px}
.messenger{margin:22px 0;background:#e8e5db;border:1px solid #ddd9c9;border-radius:18px;overflow:hidden}
.messenger-header{background:#064b44;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:14px;font-weight:800;gap:9px}
.messenger-header small{font-size:11px;color:#c5e5da;font-weight:500}
.messenger-thread{background:linear-gradient(#ece8dcde,#e2e2d6dd),repeating-linear-gradient(30deg,transparent 0 26px,#dce2d846 26px 27px);padding:16px 10px;max-height:52dvh;min-height:160px;overflow-y:auto}
.messenger .bubble{width:fit-content;max-width:84%;border-radius:13px 13px 13px 3px;padding:9px 11px;margin:10px 0;background:#fff;box-shadow:0 1px 2px #0002}
.messenger .bubble.me{border-radius:13px 13px 3px 13px;background:#d4f4db;margin-left:auto}
.messenger .bubble small{font-size:11px;color:#167052}
.messenger .bubble p{line-height:1.45;margin:4px 0 0}
.messenger-compose{background:#f7f6f1;padding:10px;display:flex;align-items:center;gap:8px}
.messenger-compose input{border:1px solid #dedfd7;border-radius:999px;min-height:44px;background:white}
.send-message{border-radius:50%;height:44px;min-width:44px;padding:0;font-size:21px}
.messenger #reload{margin:0 10px 10px}
.nav b{font-size:21px}
@media(max-width:390px){.messenger-header{font-size:14px}.messenger-header small{font-size:10px}}

.event-tabs{display:flex;gap:5px;overflow-x:auto;margin:0 0 14px;background:#f0f2e9;border-radius:13px;padding:5px;scrollbar-width:none}
.event-tabs button{white-space:nowrap;flex:1;background:transparent;border:0;padding:12px 8px;color:#477069;font-size:12px;font-weight:800;border-radius:9px}
.event-tabs button.selected{background:#056954;color:#fff;box-shadow:0 2px 7px #00351c2e}
.event-panel[hidden]{display:none!important}
.event-panel>.card{margin-bottom:14px}
@media(max-width:390px){.event-tabs button{font-size:11px;padding:10px 5px}}

/* Deployment correction: readable invitation screen on the dark background. */
.login h1{color:#fff8ee}
.login .muted{color:#d4e5df}
.login .eyebrow{color:#efc995!important}
