/* =====================================================
   style.css — Variables globales & styles partagés
   Anniversaire Éric Balet · 14 juin 2026
   ===================================================== */

:root {
  --green-dark:    #2d5016;
  --green-mid:     #4a7c2e;
  --green-light:   #7aad4e;
  --green-pale:    #d8edca;
  --green-bg:      #f2f7ec;
  --amber:         #c97c1a;
  --amber-light:   #f5d48c;
  --amber-pale:    #fdf3d6;
  --brown:         #5c3d1e;
  --cream:         #faf8f0;
  --white:         #ffffff;
  --text:          #2a2a1a;
  --text-muted:    #6b6b50;
  --border:        #cdd9b8;
  --shadow-sm:     0 1px 4px rgba(45,80,22,0.08);
  --shadow:        0 2px 12px rgba(45,80,22,0.10);
  --shadow-lg:     0 6px 28px rgba(45,80,22,0.14);
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --transition:    0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h2 { font-size: 26px; color: var(--green-dark); margin-bottom: 6px; }
h3 { font-size: 18px; color: var(--brown); margin-bottom: 10px; }
p  { margin-bottom: 0; }
a  { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }

/* ── Section intro ── */
.section-intro {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.card-icon.amber { background: var(--amber-pale); }
.card-icon.brown { background: #f0e8de; }
.card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--green-dark);
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
th {
  background: var(--green-dark);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--green-pale);
  vertical-align: top;
  line-height: 1.5;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f9fbf6; }
td strong { color: var(--brown); }

/* ── Notices ── */
.notice {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  border-left: 4px solid;
  line-height: 1.5;
}
.notice.info    { background: #e8f4f8; border-color: #2e86ab; color: #1a5570; }
.notice.warn    { background: var(--amber-pale); border-color: var(--amber); color: #7a4a00; }
.notice.success { background: var(--green-pale); border-color: var(--green-mid); color: var(--green-dark); }
.notice.danger  { background: #fde8e8; border-color: #c0392b; color: #7a1515; }

/* ── Tags ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
}
.tag.amber { background: var(--amber-pale); color: #7a4a00; }
.tag.red   { background: #fde8e8;          color: #8b1a1a; }
.tag.brown { background: #f0e8de;          color: #5c3d1e; }

/* ── Budget box ── */
.budget-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.budget-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 16px;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
}
.budget-header.amber { background: var(--amber); }
.budget-header.green-mid { background: var(--green-mid); }
.budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--green-pale);
  font-size: 14px;
}
.budget-row:last-child { border-bottom: none; }
.budget-row.total {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Contact cards ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.contact-initials {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 11px;
  flex-shrink: 0;
}
.contact-name { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--green-dark); margin-bottom: 2px; }
.contact-role { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.contact-detail { font-size: 13px; color: var(--text); line-height: 1.9; }

/* ── Staff grid ── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-pale);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.staff-count { font-size: 26px; font-weight: 700; color: var(--green-dark); font-family: 'Playfair Display', serif; }
.staff-role  { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-top: 4px; }

/* ── Signalétique ── */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.sign-card {
  border: 2px dashed var(--green-mid);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  background: var(--green-bg);
}
.sign-icon  { font-size: 28px; margin-bottom: 8px; }
.sign-title { font-weight: 700; font-size: 13px; color: var(--green-dark); margin-bottom: 4px; }
.sign-desc  { font-size: 12px; color: var(--text-muted); }

/* ── Todo list ── */
.todo-list { list-style: none; }
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}
.todo-item:last-child { border-bottom: none; }
.todo-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--green-mid);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}
.todo-check:hover { background: var(--green-pale); }
.todo-check.done  { background: var(--green-mid); border-color: var(--green-mid); }
.todo-check.done::after {
  content: '✓';
  position: absolute;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.todo-text { flex: 1; font-size: 14px; }
.todo-text.done-text { text-decoration: line-through; color: var(--text-muted); }
.priority {
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}
.priority.urgent { background: #fde8e8; color: #8b1a1a; }
.priority.normal { background: var(--amber-pale); color: #7a4a00; }
.priority.ok     { background: var(--green-pale); color: var(--green-dark); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-light), var(--amber));
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot {
  position: absolute;
  left: -25px; top: 16px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--green-mid);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 3px var(--green-pale);
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.timeline-card.amber { border-left-color: var(--amber); }
.timeline-card.brown { border-left-color: var(--brown); }
.timeline-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.time-badge {
  background: var(--green-dark);
  color: var(--white);
  border-radius: 7px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.time-badge.amber-bg { background: var(--amber); }
.time-badge.brown-bg { background: var(--brown); }
.timeline-emoji { font-size: 20px; }

/* ── Plan box ── */
.plan-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  h2 { font-size: 22px; }
  table { font-size: 12px; }
  th, td { padding: 8px 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
