/* 
   La Famille Jacque  style.css V2
   Thème : "CFC Europe"  Bleu Royal + Bordeaux
   Polices : Montserrat (UI) + Lora (display)
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Couleurs principales */
  --blue:        #0033CC;
  --blue-deep:   #002299;
  --blue-mid:    #0044EE;
  --blue-dim:    rgba(0,51,204,.1);
  --blue-dim2:   rgba(0,51,204,.18);

  --wine:        #800000;
  --wine-deep:   #600000;
  --wine-dim:    rgba(128,0,0,.1);
  --wine-dim2:   rgba(128,0,0,.18);

  /* Neutres */
  --bg:          #F8FAFC;
  --bg2:         #EEF2F7;
  --bg3:         #E2E8F0;
  --surface:     #FFFFFF;
  --border:      rgba(0,51,204,.12);
  --border2:     rgba(0,51,204,.22);

  /* Texte */
  --text:        #0F172A;
  --text2:       #334155;
  --text3:       #64748B;
  --text4:       #94A3B8;

  /* Ombres */
  --sh-sm:       0 1px 8px rgba(0,51,204,.08), 0 1px 3px rgba(0,0,0,.06);
  --sh:          0 4px 24px rgba(0,51,204,.12), 0 2px 8px rgba(0,0,0,.08);
  --sh-lg:       0 12px 48px rgba(0,51,204,.18), 0 4px 16px rgba(0,0,0,.1);

  /* Transitions */
  --ease:        cubic-bezier(.4,0,.2,1);

  /* Polices */
  --font-d:      'Lora', Georgia, serif;
  --font-b:      'Montserrat', 'Segoe UI', sans-serif;

  /* Rayons */
  --r-sm:        8px;
  --r:           12px;
  --r-lg:        18px;
  --r-xl:        24px;
}

html, body {
  min-height: 100%;
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/*  TOPBAR  */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 2px 16px rgba(0,51,204,.12);
}
.topbar-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem;
  gap: 1rem;
}

/* Logo + nom */
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-logo {
  height: 40px; width: 40px; object-fit: contain;
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 600;
  color: var(--blue); letter-spacing: .01em; white-space: nowrap;
}

/* Nav */
.topbar-nav {
  display: flex; align-items: center; gap: 4px;
}
.nav-btn {
  padding: 7px 16px; border-radius: 99px; border: none;
  background: none; font-family: var(--font-b); font-size: .78rem;
  font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text3); cursor: pointer;
  transition: all .18s var(--ease); white-space: nowrap;
}
.nav-btn:hover { background: var(--blue-dim); color: var(--blue); }
.nav-btn.active {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 10px rgba(0,51,204,.3);
}
.admin-btn { color: var(--wine); }
.admin-btn:hover { background: var(--wine-dim); color: var(--wine); }
.admin-btn.active { background: var(--wine); color: #fff; box-shadow: 0 2px 10px rgba(128,0,0,.3); }

/* Burger mobile */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transition: all .2s var(--ease);
}

/*  VIEWS  */
.view { display: none; animation: viewIn .25s var(--ease) both; }
.view.active { display: block; }
@keyframes viewIn { from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none} }

/*  HERO  */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 55%, #1a4fd8 100%);
  padding: 4.5rem 1.5rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(128,0,0,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(255,255,255,.07) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 620px; margin: 0 auto; text-align: center;
}

/* Verset */
.verset-block {
  margin-bottom: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-left: 3px solid rgba(255,255,255,.5);
  border-radius: var(--r);
  text-align: left;
}
.verset-icone { font-size: .8rem; color: rgba(255,255,255,.5); letter-spacing: .3em; display: block; margin-bottom: .5rem; }
.verset-texte {
  font-family: var(--font-d); font-style: italic; font-size: .92rem;
  color: rgba(255,255,255,.9); line-height: 1.75; margin-bottom: .5rem;
}
.verset-ref {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}

.hero-title {
  font-family: var(--font-d); font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 1rem;
}
.hero-title em { color: #FFD700; font-style: italic; }
.hero-sub {
  font-size: .88rem; color: rgba(255,255,255,.7);
  max-width: 400px; margin: 0 auto 2rem; line-height: 1.7;
}

/* Compte à rebours */
.countdown-wrap {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg); padding: 1.4rem 1.6rem;
  display: inline-block; min-width: 280px;
}
.countdown-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .2rem; }
.countdown-date { font-family: var(--font-d); font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 1rem; font-style: italic; }
.countdown-boxes { display: flex; gap: 10px; justify-content: center; }
.cbox {
  background: rgba(0,0,0,.25); border-radius: var(--r-sm); padding: .7rem .9rem;
  min-width: 60px; display: flex; flex-direction: column; align-items: center;
}
.cbox span { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.cbox small { font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 4px; }
.countdown-closed { font-size: .85rem; color: #FFD700; font-weight: 600; margin-top: .8rem; }

/*  LAYOUT  */
.section-wrap {
  max-width: 1040px; margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.page-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: .3rem;
}
.section-title {
  font-family: var(--font-d); font-size: 1.9rem; font-weight: 700;
  color: var(--blue);
}
.section-sub { font-size: .88rem; color: var(--text3); margin-bottom: 1rem; }
.admin-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wine);
  background: var(--wine-dim); border: 1px solid var(--wine-dim2);
  padding: 3px 10px; border-radius: 99px;
}

/*  CARDS  */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.8rem;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { box-shadow: var(--sh); }
.card-action {
  background: linear-gradient(135deg, var(--blue-dim) 0%, rgba(128,0,0,.06) 100%);
  border-color: var(--border2); text-align: center;
}
.card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1.3rem;
}
.card-icon { font-size: 1.3rem; }
.card-title {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 700;
  color: var(--blue); display: flex; align-items: center; gap: 8px;
}
.card-desc { font-size: .85rem; color: var(--text2); margin-bottom: 1.3rem; line-height: 1.7; }

/*  DISCLAIMER  */
.disclaimer {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 1rem 1.3rem; border-radius: var(--r);
  background: var(--bg2); border: 1px solid var(--bg3);
  font-size: .78rem; color: var(--text3); line-height: 1.6;
}
.disclaimer-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/*  FORMS  */
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem;
}
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text3);
}
.field-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1.5px solid var(--bg3);
  border-radius: var(--r-sm); font-family: var(--font-b); font-size: .88rem;
  color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); background: #fff; }
.field-input::placeholder { color: var(--text4); }
.field-error { font-size: .78rem; color: var(--wine); margin-bottom: .8rem; }

.tag-input-wrap { display: flex; gap: 8px; margin-bottom: .9rem; }
.tag-input-wrap .field-input { flex: 1; }

/*  TAGS  */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--blue-dim); border: 1px solid var(--border2);
  font-size: .75rem; font-weight: 600; color: var(--blue);
  animation: tagIn .2s var(--ease) both;
}
@keyframes tagIn { from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none} }
.tag-del {
  width: 16px; height: 16px; border-radius: 50%; border: none;
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: .75rem; transition: all .12s;
}
.tag-del:hover { background: var(--wine-dim); color: var(--wine); }

/*  BUTTONS  */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px; border-radius: 99px; border: none;
  font-family: var(--font-b); font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: all .18s var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 3px 14px rgba(0,51,204,.32);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 5px 20px rgba(0,51,204,.4); }
.btn-accent {
  background: linear-gradient(135deg, var(--wine) 0%, #a00000 100%);
  color: #fff; box-shadow: 0 3px 14px rgba(128,0,0,.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(128,0,0,.4); }
.btn-secondary {
  background: var(--bg2); border: 1.5px solid var(--bg3); color: var(--text2);
}
.btn-secondary:hover { background: var(--blue-dim); border-color: var(--border2); color: var(--blue); }
.btn-ghost { background: none; color: var(--text3); }
.btn-ghost:hover { background: var(--bg2); color: var(--text); }
.btn-danger { background: var(--wine-dim); border: 1px solid var(--wine-dim2); color: var(--wine); }
.btn-danger:hover { background: rgba(128,0,0,.18); }
.btn-full { width: 100%; margin-top: .7rem; }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }

/*  BADGES  */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; border-radius: 99px;
  background: var(--blue); color: #fff;
  font-family: var(--font-b); font-size: .65rem; font-weight: 700; padding: 0 8px;
}
.big-badge {
  font-family: var(--font-d); font-size: 2rem; font-weight: 700; color: var(--blue);
}

/*  SUCCESS  */
.success-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-radius: var(--r-sm);
  background: rgba(0,100,0,.06); border: 1px solid rgba(0,100,0,.2);
  color: #155d27; font-size: .85rem; font-weight: 600; margin-top: .8rem;
}

/*  MEMBRES GRILLE  */
.membres-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
  min-height: 40px;
}
.membre-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--text);
  box-shadow: var(--sh-sm);
  animation: tagIn .2s var(--ease) both;
  transition: box-shadow .15s, transform .15s;
}
.membre-chip:hover { box-shadow: var(--sh); transform: translateY(-1px); }
.membre-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700;
}
.membre-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/*  MEMBRES ADMIN  */
.membres-admin-list { display: flex; flex-direction: column; gap: 7px; }
.membre-admin-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; border-radius: var(--r-sm); background: var(--bg);
  border: 1px solid var(--border); gap: 10px;
  animation: tagIn .2s var(--ease) both;
}
.membre-admin-name { font-size: .85rem; flex: 1; font-weight: 500; }
.membre-admin-del {
  border: none; background: none; cursor: pointer; color: var(--text4);
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  transition: all .12s;
}
.membre-admin-del:hover { background: var(--wine-dim); color: var(--wine); }

/*  PLANNING GRID  */
.planning-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem;
}
.groupe-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  animation: cardIn .3s var(--ease) both;
}
@keyframes cardIn { from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none} }
.groupe-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }

.groupe-card-top {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 60%, #1a4fd8 100%);
  padding: 1rem 1.3rem .9rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.groupe-card-top::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--wine), transparent);
}
.groupe-num {
  font-family: var(--font-d); font-size: 1.05rem; font-style: italic;
  color: rgba(255,255,255,.95); font-weight: 600;
}
.groupe-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.65); text-transform: uppercase;
  background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 99px;
}
.groupe-card-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; }

.groupe-info-row { display: flex; align-items: flex-start; gap: 9px; }
.groupe-info-icon { font-size: .85rem; flex-shrink: 0; margin-top: 1px; }
.groupe-info-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text4); margin-bottom: 3px;
}
.groupe-info-val { font-size: .85rem; color: var(--text); line-height: 1.45; font-weight: 500; }

.groupe-membres { display: flex; flex-direction: column; gap: 5px; }
.groupe-membre-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text2);
}
.gmi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}

.groupe-select {
  width: 100%; padding: 7px 10px;
  background: var(--bg); border: 1.5px solid var(--bg3);
  border-radius: var(--r-sm); font-family: var(--font-b); font-size: .8rem;
  color: var(--text); outline: none; cursor: pointer;
  transition: border-color .15s;
}
.groupe-select:focus { border-color: var(--blue); }

/*  MODAL ADMIN  */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.hidden { display: none !important; }
.modal-box {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 2rem; max-width: 380px; width: 100%;
  box-shadow: var(--sh-lg); border-top: 4px solid var(--wine);
  animation: cardIn .25s var(--ease) both;
}
.modal-title {
  font-family: var(--font-d); font-size: 1.3rem; font-weight: 700;
  color: var(--blue); margin-bottom: .4rem;
}
.modal-sub { font-size: .82rem; color: var(--text3); margin-bottom: 1.2rem; }
.modal-actions { display: flex; gap: 10px; margin-top: 1.2rem; }

/*  TOAST  */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--text); color: #fff; border-radius: var(--r);
  padding: 11px 20px; font-size: .8rem; font-weight: 600;
  box-shadow: var(--sh-lg); letter-spacing: .02em;
  opacity: 0; transform: translateY(10px);
  transition: all .22s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/*  UTILS  */
.hidden { display: none !important; }

/*  RESPONSIVE  */
@media (max-width: 768px) {
  .topbar-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--blue); padding: 1rem; gap: 6px; box-shadow: var(--sh); }
  .topbar-nav.open { display: flex; }
  .topbar { position: relative; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  .topbar-inner { padding: .8rem 1rem; }
  .brand-name { font-size: 1rem; }
  .hero { padding: 3rem 1rem 2.8rem; }
  .verset-block { padding: 1rem 1.2rem; }
  .section-wrap { padding: 1.8rem 1rem 3.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .planning-grid { grid-template-columns: 1fr; }
  .membres-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .action-row { flex-direction: column; }
  .countdown-boxes { gap: 7px; }
  .cbox { min-width: 50px; padding: .6rem .7rem; }
  .cbox span { font-size: 1.3rem; }
  .countdown-wrap { min-width: unset; width: 100%; }
}
