﻿/* ===== FÊTE (anniversaire / nouvel an) ===== */
.fete-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  overflow: hidden;
  cursor: pointer;
}
.fete-confettis { position: absolute; inset: 0; pointer-events: none; }
.confetti-piece {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 14px;
  opacity: 0.95;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(112vh) rotate(560deg); opacity: 0.35; }
}
.fete-guirlande {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.fete-guirlande span {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 24px solid;
  opacity: 0.9;
}
.fete-message {
  position: relative;
  z-index: 3;
  background: var(--blanc, #fff);
  padding: 2.2rem 2.8rem;
  border-radius: 22px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--texte, #333);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  max-width: 90%;
}

/* ===== TOASTS ===== */
#toast-zone {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99999;
  align-items: center;
}

.toast {
  background: var(--texte, #333);
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  animation: toastEntree 0.3s ease;
  white-space: nowrap;
}

.toast-sortie { animation: toastSortie 0.3s ease forwards; }

@keyframes toastEntree {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastSortie {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 480px) {
  .toast { font-size: 0.8rem; padding: 0.6rem 1rem; white-space: normal; text-align: center; }
}

/* ===== AUTH SCREEN ===== */
#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde8f0 0%, #fdf5c8 100%);
  padding: 2rem 1rem;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(240,168,187,0.25);
}

.auth-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--rose-fonce);
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-titre {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--texte);
  text-align: left;
  margin-bottom: 1.2rem;
}

.auth-desc {
  font-size: 0.88rem;
  color: var(--texte-doux);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texte-doux);
  margin: 0.8rem 0 0.3rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--rose);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 2.6rem; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}
.auth-input:focus { border-color: var(--rose-fonce); }

.auth-btn {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.85rem;
  background: var(--rose-fonce);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-btn:hover { background: #e090a8; }

.auth-btn-outline {
  background: #fff;
  color: var(--rose-fonce);
  border: 2px solid var(--rose-fonce);
}
.auth-btn-outline:hover { background: var(--rose); }

.auth-error {
  color: #e74c3c;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1rem;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin-top: 1rem;
}
.auth-switch a {
  color: var(--rose-fonce);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.auth-famille-choix {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.famille-info {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--rose-fonce);
  background: transparent;
  padding: 0;
  white-space: nowrap;
  line-height: 1;
}

.btn-qui-suis-je {
  background: var(--rose);
  border: 1.5px solid var(--rose-fonce);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--texte);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-qui-suis-je:hover { background: var(--rose-fonce); color: var(--blanc); }

.btn-parametres {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: transform 0.2s;
  line-height: 1;
}

.btn-recherche {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}
.btn-recherche:hover { transform: scale(1.1); }

.recherche-resultat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.recherche-resultat:hover { background: var(--rose); }
.recherche-resultat-icon { font-size: 1.2rem; flex-shrink: 0; }
.recherche-resultat-texte { font-size: 0.9rem; color: var(--texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-parametres:hover { transform: rotate(30deg) scale(1.15); }

/* ===== PANNEAU PARAMÈTRES ===== */
.parametres-panel {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2rem;
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--ombre);
  animation: slideUp 0.25s ease;
}
.parametres-liste {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.param-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: calc(var(--rayon) - 4px);
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.param-toggle:hover { background: var(--rose); }
.param-icon { font-size: 1.2rem; }
.param-label { flex: 1; font-size: 0.92rem; font-weight: 600; }
.param-toggle input[type=checkbox] { display: none; }

/* Toggle switch */
.toggle-slider {
  position: relative;
  width: 42px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  transition: background 0.25s;
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.param-toggle input:checked ~ .toggle-slider { background: var(--rose-fonce); }
.param-toggle input:checked ~ .toggle-slider::after { transform: translateX(18px); }

.param-accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.param-accordion-item { border: 1px solid #eee; border-radius: calc(var(--rayon) - 4px); overflow: hidden; }
.param-accordion-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--rose) 0%, #fce4ec 100%);
  border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--texte); text-align: left;
  letter-spacing: 0.01em;
  transition: filter 0.15s;
}
.param-accordion-header:hover { filter: brightness(0.96); }
.param-accordion-arrow { font-size: 1.2rem; transition: transform 0.25s; color: var(--rose-fonce); font-weight: 900; }
.param-accordion-body { display: none; flex-direction: column; gap: 0.5rem; padding: 0.8rem; background: white; }
.param-accordion-body.open { display: flex; }

/* ===== PIN ===== */
.pin-dots { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0 0.2rem; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rose-fonce); background: transparent; transition: background 0.15s; }
.pin-dot-rempli { background: var(--rose-fonce); }
.pin-clavier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.2rem; }
.pin-key {
  background: #fafafa; border: 1.5px solid #eee; border-radius: var(--rayon);
  font-size: 1.4rem; font-weight: 600; padding: 0.9rem 0;
  cursor: pointer; transition: background 0.15s;
}
.pin-key:hover { background: var(--rose); }
.pin-key-wide { font-size: 1.2rem; }
.pin-key-cancel { color: #e74c3c; }
.pin-key-cancel:hover { background: #fde8e8; }

.theme-picker { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0.5rem 0; justify-content: center; }
.theme-swatch {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active { border-color: #555; transform: scale(1.15); }

.mode-btn {
  flex: 1; padding: 0.6rem 0.5rem; border: 2px solid #eee; border-radius: calc(var(--rayon) - 4px);
  background: #fafafa; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, border-color 0.15s; color: var(--texte);
}
.mode-btn:hover { background: var(--rose); }
.mode-btn-actif { background: var(--rose); border-color: var(--rose-fonce); }

.param-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texte-doux);
  margin: 1.2rem 0 0.5rem;
}
.param-section-title:first-child { margin-top: 0; }

.param-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: calc(var(--rayon) - 4px);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--texte);
}
.param-action-btn:hover { background: var(--rose); }
.param-action-danger:hover { background: #fde8e8; color: #c0392b; }

.param-champ { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.7rem 1rem; background: #fafafa; border: 1px solid #eee; border-radius: calc(var(--rayon) - 4px); }
.param-champ-label { font-size: 0.78rem; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 0.05em; }
.param-champ-row { display: flex; align-items: center; gap: 0.5rem; }
.param-champ-hint { font-size: 0.76rem; color: var(--texte-doux); margin: 0; }
.param-input { flex: 1; border: 1.5px solid #ddd; border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 0.9rem; font-family: inherit; color: var(--texte); background: white; }
.param-input:focus { outline: none; border-color: var(--rose-fonce); }
.param-save-btn { background: var(--rose-fonce); color: white; border: none; border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 0.85rem; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.param-save-btn:hover { background: #e0849a; }
.param-code { flex: 1; font-family: monospace; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; color: var(--texte); }
.param-copy-btn { background: none; border: 1.5px solid #ddd; border-radius: 8px; padding: 0.3rem 0.6rem; font-size: 1rem; cursor: pointer; transition: background 0.15s; }
.param-copy-btn:hover { background: var(--rose); }

/* ===== VARIABLES ===== */
:root {
  --rose:       #f9d6e0;
  --rose-fonce: #f0a8bb;
  --jaune:      #fdf5c8;
  --blanc:      #ffffff;
  --texte:      #3a3a3a;
  --texte-doux: #8a8a8a;
  --ombre:      rgba(240, 168, 187, 0.2);
  --ombre-md:   rgba(240, 168, 187, 0.35);
  --rayon:      18px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-taille-texte="petit"]  { zoom: 0.87; }
html[data-taille-texte="grand"]  { zoom: 1.18; }

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: var(--texte);
  background-color: var(--blanc);
  line-height: 1.7;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, .logo, .footer-logo {
  font-family: 'Great Vibes', cursive;
}

h1 { font-size: 4.5rem;   color: var(--blanc); }
h2 { font-size: 3.2rem; color: var(--texte); margin-bottom: 0.4rem; }
h3 { font-size: 1.4rem; font-weight: bold; margin-bottom: 0.5rem; }

p  { font-size: 1rem; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 100%;
  background-color: var(--blanc);
  box-shadow: 4px 0 24px var(--ombre);
  z-index: 200;
  padding: 2rem 1.8rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 199;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--rose);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--texte);
  transition: background 0.2s;
}

.sidebar-close:hover { background: var(--rose-fonce); color: var(--blanc); }

.sidebar-title {
  color: var(--rose-fonce);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--rose);
  border-radius: var(--rayon);
  padding: 1rem;
  transition: background var(--transition), transform var(--transition);
}

.sidebar-icon { font-size: 1.6rem; flex-shrink: 0; }

.sidebar-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--texte);
}

.sidebar-list p {
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin: 0;
}

/* ===== HAMBURGER ===== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--rose-fonce);
  border-radius: 2px;
  transition: background 0.2s;
}

.hamburger:hover span { background-color: var(--texte); }

/* ===== NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px var(--ombre);
  transition: box-shadow var(--transition);
  transform: translateZ(0);
  will-change: transform;
}

nav {
  width: 100%;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

nav .logo {
  font-size: 2.4rem;
  color: var(--rose-fonce);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity var(--transition);
}
nav .logo:hover { opacity: 0.8; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  text-decoration: none;
  color: var(--texte);
  font-size: 1.05rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose-fonce);
  border-radius: 2px;
  transition: width var(--transition);
}

nav ul a:hover { color: var(--rose-fonce); }
nav ul a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--rose-fonce) 0%, var(--rose) 55%, var(--jaune) 100%);
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  color: var(--blanc);
  margin: 1.4rem 0 2.2rem;
  opacity: 0.95;
  line-height: 1.7;
}

/* ===== BOUTON ===== */
.btn-primary {
  display: inline-block;
  background-color: var(--blanc);
  color: var(--rose-fonce);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(240, 168, 187, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(240, 168, 187, 0.6);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Séparateur ondulé */
.wave-separator {
  display: block;
  line-height: 0;
  margin-bottom: -2px;
}
.wave-separator svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-hero {
  margin-top: -60px;
  position: relative;
  z-index: 1;
}
.wave-hero svg {
  height: 80px;
}

.section-alt {
  max-width: 100%;
  background-color: var(--jaune);
  padding: 4rem 2rem 5rem;
}

/* Eyebrow label */
.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose-fonce);
  margin-bottom: 0.6rem;
}

.section-alt > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-alt h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--texte);
  margin-bottom: 2rem;
  text-align: center;
}

.section-alt h2,
.section-alt .section-subtitle,
.section-eyebrow {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.section-subtitle {
  color: var(--texte-doux);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== CARTES FONCTIONNALITÉS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}

.card {
  background: linear-gradient(145deg, var(--blanc) 0%, var(--rose) 100%);
  border-radius: var(--rayon);
  padding: 2rem 1.8rem;
  border: 1.5px solid rgba(240,168,187,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--ombre-md);
  border-color: var(--rose-fonce);
}

.card-icon {
  font-size: 2.6rem;
  margin-bottom: 1.1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  color: var(--texte-doux);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== DEUX COLONNES ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.col-text p {
  color: var(--texte-doux);
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--texte);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rose-fonce);
  font-weight: bold;
}

.visual-box {
  background: linear-gradient(135deg, var(--rose) 0%, var(--blanc) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 6px 24px var(--ombre);
}

.big-emoji { font-size: 5rem; display: block; margin-bottom: 1rem; }

.visual-box p {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
  color: var(--rose-fonce);
}

/* ===== ARTICLES ===== */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.article-card {
  background-color: var(--blanc);
  border: 2px solid var(--rose);
  border-radius: 16px;
  padding: 1.8rem;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 6px 20px var(--ombre);
}

.article-tag {
  display: inline-block;
  background-color: var(--rose);
  color: var(--rose-fonce);
  font-size: 0.78rem;
  font-weight: bold;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card p {
  color: var(--texte-doux);
  font-size: 0.93rem;
  margin: 0.5rem 0 1rem;
}

.lien-article {
  color: var(--rose-fonce);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.lien-article:hover { text-decoration: underline; }

/* ===== FORMULAIRE ===== */
.contact-form {
  max-width: 640px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--rose);
  border-radius: 10px;
  background-color: var(--blanc);
  color: var(--texte);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--rose-fonce);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn-primary {
  background-color: var(--rose-fonce);
  color: var(--blanc);
  align-self: center;
  padding: 0.9rem 2.5rem;
}

.contact-form .btn-primary:hover {
  background-color: #e895ae;
}

/* ===== VUE FONCTIONNALITÉ PLEIN ÉCRAN ===== */
@keyframes featureSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

#feature-view {
  display: none;
  flex-direction: column;
  min-height: calc(100vh - 65px);
  background: var(--blanc);
}

#feature-view.visible {
  animation: featureSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.feature-topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  background: var(--jaune);
  border-bottom: 2px solid var(--rose);
  flex-wrap: wrap;
  position: sticky;
  top: var(--header-h, 65px);
  z-index: 10;
  transform: translateZ(0);
  will-change: transform;
}

.feature-topbar h2 {
  margin: 0;
  color: var(--rose-fonce);
  font-size: 3rem;
  line-height: 1.4;
  padding: 0.2rem 0;
  flex: 1;
}

#feature-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

#feature-view .feature-topbar { background: #d6eaf8; border-color: #a9cce3; }
#feature-view .month-block    { background: #d6eaf8; }
#feature-view .week-day       { background: #d6eaf8; }
#feature-view .week-day.today { background: #a9cce3; }

.btn-back {
  background: var(--rose);
  border: none;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--texte);
  transition: background 0.2s;
}

.btn-back:hover { background: var(--rose-fonce); color: var(--blanc); }

/* Grille annuelle */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.month-block { background: var(--jaune); border-radius: 12px; padding: 1rem; }

.month-view-single { max-width: 640px; margin: 1.5rem auto; }
.month-view-single .month-block { padding: 2.2rem; }
.month-view-single .month-name { font-size: 1.8rem; margin-bottom: 1.4rem; }
.month-view-single .month-grid { gap: 6px; }
.month-view-single .day-label { font-size: 1.05rem; }
.month-view-single .day-cell { height: 56px; font-size: 1.3rem; }
.month-view-single .event-dot { width: 11px; height: 11px; }
.month-view-single .event-dot-anniv { font-size: 18px; }

.month-name {
  font-weight: bold;
  color: var(--rose-fonce);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  text-align: center;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.day-label {
  font-size: 0.65rem;
  color: var(--texte-doux);
  font-weight: bold;
  padding-bottom: 4px;
}

.day-cell {
  font-size: 0.75rem;
  height: 22px;
  aspect-ratio: 1;
  justify-self: center;
  padding: 0 2px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1px;
  overflow: visible;
}

.day-cell:hover { background: var(--rose); }

.day-cell-dots {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.day-cell.today {
  background: var(--rose-fonce);
  color: var(--blanc);
  font-weight: bold;
}

/* Vue semaine */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.8rem;
}

.week-day {
  background: var(--jaune);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.week-day.today { background: var(--rose); }

.week-day-name {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--texte-doux);
}

.week-day-num {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  color: var(--texte);
}

.week-day-num.today {
  background: var(--rose-fonce);
  color: var(--blanc);
}

.week-day-body { width: 100%; flex: 1; }

.sidebar-item-link { cursor: pointer; transition: background var(--transition), transform var(--transition); }
.sidebar-item-link:hover { background: var(--rose-fonce) !important; transform: translateX(4px); }
.sidebar-item-link:hover strong, .sidebar-item-link:hover p { color: var(--blanc) !important; }

/* ===== MEMBRES ===== */
.membres-section { text-align: center; }

.famille-header {
  margin-bottom: 1.2rem;
}

.famille-nom-calligraphie {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: var(--rose-fonce);
  line-height: 1.1;
}

.famille-code-badge {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--rose);
  border: 1.5px solid var(--rose-fonce);
  border-radius: 50px;
  padding: 0.3rem 1.1rem;
  font-size: 0.82rem;
  color: var(--texte);
}

.membres-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 1rem;
}

.membre-card {
  border-radius: var(--rayon);
  padding: 1.6rem 1.2rem 1.3rem;
  width: 148px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 16px var(--ombre);
  border: 2px solid rgba(255,255,255,0.6);
  transition: transform var(--transition), box-shadow var(--transition);
}

.membre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--ombre-md);
}

.membre-initiale {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.membre-nom  { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.membre-age  { font-size: 0.78rem; color: var(--texte-doux); margin-bottom: 0.5rem; }

.membre-role-badge {
  display: inline-block;
  border-radius: 50px;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--texte);
  margin-top: 0.3rem;
}

.membre-suppr {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.65rem;
  cursor: pointer;
  display: none;
  color: var(--texte);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.membre-card:hover .membre-suppr { display: flex; align-items: center; justify-content: center; }

.membre-edit {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.membre-card:hover .membre-edit { display: flex; }

.btn-ajouter-membre {
  background: none;
  border: 2px dashed var(--rose-fonce);
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: var(--rose-fonce);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-ajouter-membre:hover { background: var(--rose); }

/* Modal membre */
.modal-membre {
  background: var(--blanc);
  border-radius: 20px;
  padding: 2rem;
  width: 90vw;
  max-width: 420px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.modal-membre h2 { color: var(--rose-fonce); margin-bottom: 1.2rem; font-size: 2rem; }

.modal-membre label {
  display: block;
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--texte-doux);
  margin: 0.9rem 0 0.3rem;
}

.modal-membre input,
.modal-membre select {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--rose);
  border-radius: 10px;
  background: var(--blanc);
  color: var(--texte);
  outline: none;
}

.modal-membre input:focus,
.modal-membre select:focus { border-color: var(--rose-fonce); }

/* ===== EMOJI PICKER ===== */
.emoji-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.emoji-opt {
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 10px;
  border: 2.5px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  line-height: 1;
}
.emoji-opt:hover { transform: scale(1.15); }
.emoji-opt.selected { border-color: var(--rose-fonce); background: var(--rose); }

/* Teintes de peau */
.skin-picker-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  align-items: center;
}

.skin-opt {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.skin-opt:first-child { background: #f5f5f5; font-size: 0.8rem; }
.skin-opt:hover { transform: scale(1.15); }
.skin-opt.selected { border-color: var(--rose-fonce); transform: scale(1.1); }

/* Surnom sur la carte */
.membre-surnom {
  font-size: 0.72rem;
  color: var(--texte-doux);
  font-style: italic;
  margin-top: 0.25rem;
  line-height: 1.3;
  word-break: break-word;
}

/* Initiales stylisées */
.membre-initiale-txt {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(0,0,0,0.45);
  letter-spacing: 0.05em;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
  max-height: 130px;
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--rose);
  border-radius: var(--rayon);
}

.avatar-opt {
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

.avatar-opt:hover { transform: scale(1.2); background: rgba(255,255,255,0.5); }
.avatar-opt.selected { background: rgba(255,255,255,0.85); box-shadow: 0 0 0 2.5px var(--rose-fonce); transform: scale(1.1); }

.couleur-picker {
  display: grid;
  grid-template-columns: repeat(6, 2rem);
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.couleur-opt {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 0 0 2px transparent;
}

.couleur-opt:hover  { transform: scale(1.15); }
.couleur-opt.selected { box-shadow: 0 0 0 3px var(--rose-fonce); transform: scale(1.15); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 300;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 2rem 0;
}

.modal-overlay.active { display: flex; }

.modal-membre {
  margin: auto;
  max-height: none;
}

/* ===== ÉVÉNEMENTS ===== */
.feature-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-ajouter-evenement {
  background: var(--blanc);
  border: 2px solid #a9cce3;
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #2e86c1;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.btn-ajouter-evenement:hover { background: #a9cce3; color: var(--blanc); }

.event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-chip {
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: var(--texte);
  line-height: 1.3;
}

.event-dot-anniv {
  background: none !important;
  width: auto;
  height: auto;
  font-size: 10px;
  line-height: 1;
}

.event-chip-anniv {
  border: 2px dashed var(--rose-fonce);
  font-style: italic;
}

.event-toute-famille-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.6rem 0 1rem;
}
.event-toute-famille-label input { width: auto; margin: 0; }

.event-chip small {
  font-weight: normal;
  opacity: 0.8;
}

/* ===== POPUP ÉVÉNEMENT ===== */
.event-popup {
  display: none;
  position: absolute;
  z-index: 400;
  background: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 1rem 1.2rem;
  min-width: 200px;
  border: 2px solid var(--rose);
}

.event-popup strong {
  display: block;
  font-size: 1rem;
  color: var(--texte);
  margin-bottom: 0.2rem;
}

.event-popup span {
  display: block;
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin-bottom: 0.8rem;
}

.event-popup-actions {
  display: flex;
  gap: 0.6rem;
}

.event-popup-actions button {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--rose);
  color: var(--texte);
  transition: background 0.2s;
}

.event-popup-actions button:hover { background: var(--rose-fonce); color: var(--blanc); }
.event-popup-actions .btn-suppr { background: #fde8e8; color: #c0392b; }
.event-popup-actions .btn-suppr:hover { background: #c0392b; color: var(--blanc); }

/* ===== LISTES DE COURSES ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 2rem;
  justify-content: center;
}

/* Barre du haut courses */
.courses-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.courses-date {
  font-size: 1rem;
  color: var(--texte-doux);
  font-style: italic;
}

.btn-tout-effacer {
  background: #fdecea;
  border: 1.5px solid #e8a0a0;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: #c0392b;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-tout-effacer:hover { background: #c0392b; color: #fff; }

/* Wrapper avec crayon */
.courses-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Crayon décoratif */
.crayon-deco {
  width: 38px;
  flex-shrink: 0;
  margin-top: 1rem;
  opacity: 0.85;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.12));
}

/* Barre de progression */
.bloc-progress-wrap {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
}

.bloc-counter {
  font-size: 0.78rem;
  color: var(--texte-doux);
  font-style: italic;
}

.bloc-progress-bar {
  height: 5px;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.bloc-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.bloc-note {
  border-radius: 0 0 16px 16px;
  padding: 0 1.2rem 1rem;
  box-shadow: 0 4px 14px var(--ombre);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.bloc-add-btn:hover { opacity: 0.8; }

.bloc-spirales {
  margin: 0 -1.2rem;
  background: var(--blanc);
  border-radius: 10px 10px 0 0;
  padding: 4px 4px 0;
  border-bottom: 2px solid #ddd;
}

.bloc-spirales svg {
  display: block;
  width: 100%;
  height: 36px;
}

.bloc-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0 0.2rem;
  position: sticky;
  top: -1px;
  z-index: 5;
  border-radius: 0 0 10px 10px;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.bloc-icon  { font-size: 1.4rem; }
.bloc-label { font-weight: bold; font-size: 1.2rem; color: var(--texte); }

.bloc-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 320px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(2rem - 1px),
    #e8d8c4 calc(2rem - 1px),
    #e8d8c4 2rem
  );
  background-size: 100% 2rem;
  padding-top: 0.35rem;
}

.bloc-item {
  transition: opacity 0.4s, transform 0.4s;
}

.bloc-item label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--texte);
  height: 2rem;
  padding: 0 0.2rem 0.3rem;
  box-sizing: border-box;
}

.bloc-item input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--rose-fonce);
  cursor: pointer;
  flex-shrink: 0;
}

.bloc-item span.done {
  text-decoration: line-through;
  color: var(--texte-doux);
}

.item-fading {
  opacity: 0;
  transform: translateX(10px);
}

.bloc-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.bloc-input {
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--rose);
  border-radius: 8px;
  background: var(--blanc);
  color: var(--texte);
  outline: none;
}

.bloc-input:focus { border-color: var(--rose-fonce); }

.bloc-add-btn {
  background: var(--rose-fonce);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  width: 2.2rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.bloc-add-btn:hover { background: #e895ae; }

/* ===== TÂCHES MÉNAGÈRES ===== */
.taches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: center;
}

.tache-card {
  background: var(--blanc);
  border-radius: 18px;
  width: 280px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--card-color, #f9d6e0);
}

.tache-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  position: relative;
}

.tache-initiale {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--texte);
  flex-shrink: 0;
}

.tache-prenom {
  font-weight: bold;
  font-size: 1rem;
  color: var(--texte);
}

.tache-role {
  font-size: 0.78rem;
  color: var(--texte-doux);
}

.tache-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.7);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--texte);
}

.tache-list {
  list-style: none;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-height: 160px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(2.2rem - 1px),
    #f0f0f0 calc(2.2rem - 1px),
    #f0f0f0 2.2rem
  );
  background-size: 100% 2.2rem;
}

.tache-item label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--texte);
  height: 2.2rem;
  padding-bottom: 0.3rem;
  box-sizing: border-box;
}

.tache-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--rose-fonce);
  cursor: pointer;
  flex-shrink: 0;
}

.tache-done label span { text-decoration: line-through; color: var(--texte-doux); }
.tache-locked { opacity: 0.45; cursor: not-allowed; }
.tache-locked label { cursor: not-allowed; }
.tache-priorite label span { font-weight: 700; }
.tache-form-priorite { flex-wrap: wrap; align-items: center; }
.tache-priorite-check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--texte-doux);
  white-space: nowrap;
  cursor: pointer;
}
.tache-priorite-check input { width: auto; }

.tache-fading { opacity: 0; transform: translateX(10px); transition: opacity 0.4s, transform 0.4s; }

.tache-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid #f0f0f0;
}

.tache-add-btn {
  border: none;
  border-radius: 8px;
  width: 2.2rem;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--texte);
  transition: opacity 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.tache-add-btn:hover { opacity: 0.7; }

.tache-card-commune { border-color: var(--jaune); order: -1; }

.tache-suppr-btn {
  background: none;
  border: none;
  color: var(--texte-doux);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0 0.2rem;
  opacity: 0;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.tache-item:hover .tache-suppr-btn { opacity: 1; }
.tache-item { display: flex; align-items: center; justify-content: space-between; }
.tache-item label { flex: 1; }

/* Podium */
.podium-zone {
  text-align: center;
  margin-bottom: 2rem;
}

.podium-titre-grand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--texte);
  margin-bottom: 1.2rem;
}

.podium-semaine-derniere {
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin-bottom: 3rem;
}

.podium-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.1rem;
  max-width: 460px;
  margin: 3rem auto 1.2rem;
}

.podium-marche {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.podium-avatar-membre {
  background: none !important;
  box-shadow: none;
  font-size: 3.2rem;
  line-height: 1;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  overflow: visible;
}

.podium-nom-membre {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--texte);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 0.5rem;
}

.podium-marche-bloc {
  position: relative;
  width: 100%;
  background: #f3f3f3;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.3rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.podium-marche-1 .podium-marche-bloc { background: linear-gradient(180deg, #ffe9a8, #f5c542); }
.podium-marche-2 .podium-marche-bloc { background: linear-gradient(180deg, #eceef0, #c9ccd1); }
.podium-marche-3 .podium-marche-bloc { background: linear-gradient(180deg, #f0cda0, #dba56a); }

.podium-marche-1 .podium-nom-membre,
.podium-marche-1 .podium-pts { color: #7a5a12; }
.podium-marche-2 .podium-nom-membre,
.podium-marche-2 .podium-pts { color: #54585c; }
.podium-marche-3 .podium-nom-membre,
.podium-marche-3 .podium-pts { color: #7a4517; }

.podium-chiffre {
  font-size: 2.1rem;
  font-weight: bold;
  color: #d8d8d8;
  margin-top: auto;
  line-height: 1;
}

.podium-marche-vide { opacity: 0.5; }
.podium-avatar-vide {
  background: #d8d8d8 !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  font-weight: bold;
}
.podium-marche-vide .podium-nom-membre { color: var(--texte-doux); font-weight: normal; }

.podium-marche-1 .podium-chiffre { color: rgba(255,255,255,0.85); }
.podium-marche-2 .podium-chiffre { color: rgba(255,255,255,0.85); }
.podium-marche-3 .podium-chiffre { color: rgba(255,255,255,0.85); }

.podium-pts {
  color: var(--texte-doux);
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.podium-list {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.podium-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.podium-medal { font-size: 0.9rem; color: var(--texte-doux); font-weight: bold; }

.podium-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.podium-name { font-weight: bold; color: var(--texte); }
.podium-score { color: var(--texte-doux); font-size: 0.8rem; }

.podium-list {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--ombre);
  padding-top: 0.8rem;
}

.podium-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.podium-medal { font-size: 0.9rem; color: var(--texte-doux); font-weight: bold; }

.podium-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.podium-name { font-weight: bold; color: var(--texte); }
.podium-score { color: var(--texte-doux); font-size: 0.8rem; }

/* Roue des récompenses */
.roue-zone {
  background: linear-gradient(135deg, var(--blanc) 0%, #fdf9ee 100%);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border: 2px dashed var(--rose-fonce);
  margin-top: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.roue-zone h3 { color: var(--texte); font-size: 1.15rem; margin-bottom: 0.3rem; }
.roue-souscritre { font-size: 0.85rem; color: var(--texte-doux); margin-bottom: 1.3rem; }
.roue-wrap { position: relative; width: 360px; height: 360px; margin: 0 auto 1.4rem; }
.roue-pointeur {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--rose-fonce);
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}
.roue {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 6px solid white;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  transition: transform 3.2s cubic-bezier(0.17, 0.89, 0.32, 1);
}
.roue-etiquette {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
}
.roue-resultat-carte {
  margin-top: 1.2rem;
  background: linear-gradient(135deg, var(--rose) 0%, var(--jaune) 100%);
  border-radius: 14px;
  padding: 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--texte);
  box-shadow: 0 6px 18px rgba(240,168,187,0.4);
}
.roue-resultat-vide { background: #f0f0f0; box-shadow: none; font-weight: 600; font-size: 0.95rem; }
.roue-resultat-detail { display: block; font-size: 0.82rem; font-weight: 400; color: var(--texte-doux); margin-top: 0.4rem; }
.roue-choix-corvees { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.roue-choix-corvee-btn {
  background: white;
  border: 1.5px solid var(--rose);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texte);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.roue-choix-corvee-btn:hover { background: var(--rose); }

/* Historique des victoires */
.historique-victoires {
  max-width: 480px;
  margin: 2rem auto 0;
  background: var(--blanc);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.historique-victoires h3 { color: var(--texte); font-size: 1.1rem; margin-bottom: 1rem; text-align: center; }
.historique-vide { font-size: 0.85rem; color: var(--texte-doux); text-align: center; padding: 0.5rem 0; }
.historique-liste { display: flex; flex-direction: column; gap: 0.6rem; }
.historique-liste li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: #fafafa;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
}
.historique-semaine { color: var(--texte-doux); font-size: 0.78rem; flex-shrink: 0; }
.historique-gagnant { color: var(--texte); flex: 1; }
.historique-recompense { font-size: 0.78rem; color: var(--rose-fonce); font-weight: 600; }

.btn-redistribuer {
  background: var(--rose);
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--texte);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-redistribuer:hover { background: var(--rose-fonce); color: var(--blanc); }

/* Illustration carte vide */
.tache-illu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.illu-corvee {
  text-align: center;
  padding: 1rem 0;
  opacity: 0.5;
}

.illu-corvee { font-size: 2.5rem; }
.illu-corvee p { font-size: 0.8rem; color: var(--texte-doux); margin-top: 0.4rem; }

/* Confettis */
.confetti-piece {
  position: absolute;
  top: -10px;
  pointer-events: none;
  animation: confetti-fall linear forwards;
  z-index: 500;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

#feature-content { position: relative; }

.taches-vide {
  text-align: center;
  margin-top: 4rem;
  color: var(--texte-doux);
}

.taches-vide span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.taches-vide p { font-size: 1rem; margin-bottom: 0.4rem; }

/* ===== IDÉES DE REPAS ===== */
/* Grille d'accueil des catégories */
.repas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.repas-cat-card {
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.repas-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.repas-cat-icon { font-size: 2.8rem; }

.repas-cat-label {
  font-weight: bold;
  font-size: 1rem;
  color: var(--texte);
}

.repas-cat-count {
  font-size: 0.8rem;
  color: var(--texte-doux);
  background: rgba(255,255,255,0.6);
  border-radius: 50px;
  padding: 0.2rem 0.8rem;
}

.repas-panel {
  border-radius: 16px;
  border: 2px solid;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.repas-panel-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
}

.repas-panel-icon { font-size: 1.6rem; }

.repas-panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--texte);
  flex: 1;
}

.repas-count {
  font-size: 0.82rem;
  color: var(--texte-doux);
  background: rgba(255,255,255,0.6);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
}

.repas-idees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  min-height: 140px;
  background: var(--blanc);
}

.repas-vide {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--texte-doux);
  padding: 2rem 0;
  font-size: 2rem;
}

.repas-vide p { font-size: 0.9rem; margin-top: 0.5rem; line-height: 1.6; }

.repas-idee-card {
  background: var(--blanc);
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.repas-idee-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }

.repas-idee-nom {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--texte);
  margin-bottom: 0.2rem;
}

.repas-idee-note {
  font-size: 0.8rem;
  color: var(--texte-doux);
  font-style: italic;
}

.repas-idee-lien {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-fonce);
  text-decoration: underline;
}

.repas-suppr {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 0.8rem;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}

.repas-suppr:hover { color: #e74c3c; }

.repas-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid #f0f0f0;
  background: var(--blanc);
  flex-wrap: wrap;
}

.repas-form-inputs {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  flex-wrap: wrap;
}

.repas-form-inputs .bloc-input { flex: 1; min-width: 140px; }

.repas-add-btn {
  white-space: nowrap;
  box-shadow: none;
}

/* ===== MOTS DE LA FAMILLE ===== */
.mots-toolbar {
  margin-bottom: 1.5rem;
}

.mots-toolbar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-ajouter-mot,
.btn-ajouter-rappel {
  background: var(--rose);
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--texte);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-ajouter-mot:hover  { background: var(--rose-fonce); color: var(--blanc); }
.btn-ajouter-rappel { background: #fdf5c8; border-color: #f7dc6f; }
.btn-ajouter-rappel:hover { background: #f7dc6f; color: var(--texte); }

.tableau-liege-wrapper {
  padding: 18px;
  background: linear-gradient(145deg, #7a5230 0%, #5c3d1e 40%, #6b4726 70%, #7a5230 100%);
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -2px 4px rgba(0,0,0,0.4);
  position: relative;
}

/* Vis aux coins du cadre */
.tableau-liege-wrapper::before,
.tableau-liege-wrapper::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4af70, #8b6914);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 5;
}
.tableau-liege-wrapper::before { top: 10px; left: 10px; }
.tableau-liege-wrapper::after  { top: 10px; right: 10px; }

.tableau-liege-screws-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}
.tableau-liege-screws-bottom span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4af70, #8b6914);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tableau-liege {
  background-color: #c4955a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0.3'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    repeating-radial-gradient(ellipse at 30% 40%, rgba(180,130,60,0.15) 0px, transparent 8px),
    repeating-radial-gradient(ellipse at 70% 20%, rgba(140,90,30,0.12) 0px, transparent 10px),
    repeating-radial-gradient(ellipse at 50% 70%, rgba(200,160,80,0.1) 0px, transparent 12px);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  min-height: 440px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  box-shadow:
    inset 0 0 30px rgba(100,60,10,0.3),
    inset 0 0 6px rgba(0,0,0,0.2);
  position: relative;
  overflow: visible;
}

.mots-vide {
  color: rgba(255,255,255,0.6);
  text-align: center;
  width: 100%;
  font-size: 1rem;
  margin-top: 4rem;
}
.mots-vide p:first-child { font-size: 3rem; margin-bottom: 0.8rem; }

.postit {
  width: 200px;
  min-height: 180px;
  padding: 1.4rem 1.2rem 1rem;
  border-radius: 3px;
  box-shadow: 3px 4px 14px rgba(0,0,0,0.3), inset 0 -2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.postit:hover {
  box-shadow: 6px 8px 20px rgba(0,0,0,0.35);
  z-index: 10;
}

.postit-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #c0392b);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 2;
}
.postit-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: #888;
  border-radius: 2px;
}

.postit-membre {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
  color: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.3rem;
}

.postit-dest {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.07);
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.3rem;
  vertical-align: middle;
  display: inline-block;
  white-space: nowrap;
}

.postit-membre { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }

.postit-texte {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.75);
  flex: 1;
  line-height: 1.5;
  word-break: break-word;
}

.postit-date {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.4);
  text-align: right;
  font-style: italic;
}

.postit-suppr {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 0.7rem;
  color: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: color 0.2s;
}
.postit-suppr:hover { color: #c0392b; }

/* Rappels */
.rappel-note {
  background: #fffef0;
  border: 2px dashed #f7dc6f;
}

.rappel-note.rappel-depasse {
  background: #fff0f0;
  border-color: #e74c3c;
  animation: rappel-pulse 2s ease-in-out infinite;
}

@keyframes rappel-pulse {
  0%, 100% { box-shadow: 3px 4px 14px rgba(0,0,0,0.3); }
  50%       { box-shadow: 3px 4px 20px rgba(231,76,60,0.5); }
}

.rappel-pin {
  background: radial-gradient(circle at 35% 35%, #f7dc6f, #d4ac0d) !important;
}

.rappel-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
  padding-bottom: 0.4rem;
}

.rappel-icon { font-size: 1rem; }

.rappel-qui {
  font-size: 1.1rem !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.rappel-echeance {
  font-size: 0.75rem;
  color: #888;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  display: inline-block;
}

.rappel-echeance.depasse {
  background: #fdecea;
  color: #c0392b;
  font-weight: bold;
}

.rappel-fait-btn {
  margin-top: 0.5rem;
  background: #d5f5e3;
  border: none;
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  color: #27ae60;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.rappel-fait-btn:hover { background: #27ae60; color: #fff; }

/* Info notification */
.notif-info {
  font-size: 0.82rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  margin-top: 0.4rem;
}
.notif-ok           { background: #d5f5e3; color: #1e8449; }
.notif-warn         { background: #fdecea; color: #c0392b; }
.notif-info-neutral { background: #fdf5c8; color: #7d6608; }

/* ===== CLOCHE ===== */
.cloche-wrapper {
  position: relative;
}

.cloche-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--blanc);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  width: 280px;
  z-index: 500;
  overflow: hidden;
  border: 1.5px solid var(--rose);
}

.cloche-dropdown.open { display: block; animation: dropdown-in 0.2s ease; }

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cloche-dropdown-title {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--texte-doux);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.1rem 0.5rem;
}

.cloche-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-top: 1px solid #f5f5f5;
}

.cloche-item:hover { background: var(--rose); }

.cloche-item-icon { font-size: 1.4rem; flex-shrink: 0; }

.cloche-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.cloche-item-text strong { font-size: 0.9rem; color: var(--texte); }
.cloche-item-text span   { font-size: 0.78rem; color: var(--texte-doux); }

.cloche-item-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.cloche-item-actif .cloche-item-text strong { color: var(--rose-fonce); }

.cloche-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: transform 0.2s;
  line-height: 1;
}

.cloche-btn:hover { transform: rotate(-15deg) scale(1.15); }

.cloche-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e74c3c;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(231,76,60,0.5);
  animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===== CARTONS & PÉNALITÉS ===== */
.pen-page-enfant { align-items: center; }
.pen-enfant-header {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 2rem 1.5rem; border-radius: var(--rayon); width: 100%; text-align: center;
}
.pen-enfant-avatar { font-size: 3rem; }
.pen-enfant-nom { font-size: 1.6rem; font-weight: 700; }
.pen-enfant-stats {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  width: 100%; margin: 0.5rem 0;
}
.pen-enfant-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  background: white; border: 1.5px solid #eee; border-radius: var(--rayon);
  padding: 1.2rem 1.5rem; flex: 1; min-width: 100px;
}
.pen-enfant-stat-argent { border-color: #fde8d0; background: #fffaf5; }
.pen-enfant-stat-val { font-size: 1.8rem; font-weight: 700; color: var(--texte); }
.pen-enfant-stat-label { font-size: 0.78rem; color: var(--texte-doux); text-align: center; }

.pen-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Bannière */
.pen-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf5c8;
  border-bottom: 2px solid #c9a227;
  padding: 1.6rem 2rem;
  gap: 1rem;
}

.pen-banner-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d6608;
  margin-bottom: 0.2rem;
}

.pen-banner-mois {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #7d6608;
  line-height: 1;
}

.pen-btn-carton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blanc);
  border: 2px solid #c9a227;
  color: #7d6608;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.pen-btn-carton:hover { background: #c9a227; color: var(--blanc); }

/* Icônes carton (rectangle arrondi style football) */
.pen-card-icon {
  display: inline-block;
  width: 12px;
  height: 17px;
  border-radius: 2px;
  flex-shrink: 0;
}
.pen-card-icon.jaune { background: #f9a825; }
.pen-card-icon.rouge { background: #e74c3c; }
.pen-tl-card-icon {
  width: 18px;
  height: 26px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pen-tl-card-icon.jaune { background: #f9a825; }
.pen-tl-card-icon.rouge { background: #e74c3c; }

/* Scoreboard */
.pen-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0 1.5rem;
}

.pen-score-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--blanc);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  border-left: 5px solid var(--membre-color, #eee);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pen-score-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pen-score-row-bas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pen-score-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--membre-color, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pen-score-info { flex: 1; min-width: 0; }
.pen-score-nom  { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pen-score-role { font-size: 0.75rem; color: var(--texte-doux); }

.pen-score-cartons {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
}

.pen-score-carton-bloc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pen-card-count {
  font-size: 1rem;
  font-weight: 700;
  color: #bbb;
  min-width: 16px;
}
.pen-card-count.actif-j { color: #e6a000; }
.pen-card-count.actif-r { color: #c0392b; }

.pen-score-argent {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1.5px solid #7dcea0;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  flex-shrink: 0;
}
.pen-score-argent-solde { font-weight: 700; font-size: 0.9rem; color: #27ae60; }
.pen-score-argent-label { font-size: 0.72rem; color: #7dcea0; }

.pen-argent-btn {
  background: rgba(39,174,96,0.12);
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.pen-argent-btn:hover { opacity: 1; }

.pen-score-propre {
  font-size: 0.75rem;
  color: #27ae60;
  font-weight: 600;
  white-space: nowrap;
}

/* Historique timeline */
.pen-histo-titre {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #7d6608;
  padding: 0 1.5rem;
}

.pen-mois-precedent {
  font-size: 0.82rem;
  color: var(--texte-doux);
  text-align: center;
  margin: 0.6rem 1.5rem 1.2rem;
  padding: 0.5rem 0.8rem;
  background: #f7f7f7;
  border-radius: 10px;
}
.pen-mois-precedent strong { color: var(--texte); }

.pen-score-mois-prec {
  font-size: 0.7rem;
  color: var(--texte-doux);
}

.pen-vide {
  text-align: center;
  color: var(--texte-doux);
  font-size: 1rem;
  padding: 2rem;
  background: var(--blanc);
  border-radius: 14px;
  margin: 0 1.5rem;
}

.pen-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1.5rem;
}

.pen-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pen-tl-item:last-child { border-bottom: none; }

.pen-tl-body { flex: 1; min-width: 0; }

.pen-tl-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.pen-tl-nom   { font-weight: 700; font-size: 0.95rem; }
.pen-tl-date  { font-size: 0.75rem; color: var(--texte-doux); margin-left: auto; flex-shrink: 0; }
.pen-tl-raison   { font-size: 0.88rem; color: var(--texte); }
.pen-tl-punition { font-size: 0.8rem; color: var(--texte-doux); margin-top: 0.25rem; }

.pen-annuler {
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--texte-doux);
  transition: all 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
.pen-annuler:hover { background: #f5f5f5; color: var(--texte); }

.pen-annuler-argent {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: #e07070;
  padding: 0 0.2rem;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.pen-annuler-argent:hover { opacity: 1; }

.pen-argent-annule {
  font-style: italic;
  color: #b0b0b0;
  font-size: 0.75rem;
  text-decoration: line-through;
}

/* Modal carton */
.carton-type-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.4rem 0 0.8rem;
}

.carton-type-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--rose);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s;
  user-select: none;
}

.carton-type-btn input { display: none; }
.carton-type-btn:has(input:checked) { background: var(--rose); font-weight: 600; }

@media (max-width: 600px) {
  .pen-banner { padding: 1.2rem 1rem; }
  .pen-score-argent { padding: 0.25rem 0.6rem; gap: 0.3rem; }
  .pen-score-argent-label { display: none; }
}

/* ===== CONTACTS D'URGENCE ===== */
.contacts-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contacts-urgences-titre {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--rose-fonce);
  margin-bottom: 0.8rem;
}

.contacts-urgences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.contact-urgence-tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: #fff0f5;
  border: 2px solid var(--rose);
  border-radius: 16px;
  padding: 1.1rem 0.5rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.contact-urgence-tuile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(240,168,187,0.45);
}

.contact-urgence-icon  { font-size: 2rem; }
.contact-urgence-label { font-size: 0.8rem; color: var(--texte-doux); font-weight: 600; text-align: center; }
.contact-urgence-numero {
  font-size: 1.3rem;
  font-weight: bold;
  color: #c0392b;
  letter-spacing: 0.05em;
}

.contacts-perso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contacts-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contacts-categorie {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  border: 2px solid var(--cat-border, #eee);
}

.contacts-cat-titre {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  background: var(--cat-color, #f9f9f9);
  color: var(--texte);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contacts-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contacts-vide {
  padding: 0.8rem 1.1rem;
  color: var(--texte-doux);
  font-size: 0.88rem;
  font-style: italic;
}

.contacts-fiche {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid #f5f5f5;
  gap: 1rem;
}

.contacts-fiche-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contacts-fiche-info strong { font-size: 0.95rem; color: var(--texte); }
.contacts-fiche-role        { font-size: 0.8rem; color: var(--texte-doux); }

.contacts-fiche-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.contacts-btn-appel {
  background: #d5f5e3;
  color: #1e8449;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.contacts-btn-appel:hover { background: #a9dfbf; }

.contacts-btn-suppr {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s;
}

.contacts-btn-suppr:hover { color: #e74c3c; }

@media (max-width: 600px) {
  .contacts-urgences-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-cats-grid     { grid-template-columns: 1fr; }
}

/* ===== ANNIVERSAIRES ===== */
.anniv-page { max-width: 700px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.anniv-voir-planning { display: block; margin: 0 auto 1.5rem; }

.anniv-prochain {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
  margin-bottom: 1.8rem;
}
.anniv-prochain-suppr {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  opacity: 1 !important;
  font-size: 0.85rem !important;
  width: 26px;
  height: 26px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9) !important;
  color: #888 !important;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.anniv-ligne .tache-suppr-btn {
  opacity: 1 !important;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0 !important;
  color: #888 !important;
  border-radius: 50%;
  flex-shrink: 0;
}
.anniv-prochain-emoji { font-size: 3.5rem; flex-shrink: 0; }
.anniv-prochain-info { flex: 1; }
.anniv-prochain-titre { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texte-doux); }
.anniv-prochain-nom { font-size: 1.3rem; font-weight: 700; color: var(--texte); margin-top: 0.2rem; }
.anniv-prochain-date { font-size: 0.9rem; color: var(--texte-doux); margin-top: 0.2rem; }
.anniv-prochain-compte {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-fonce);
  background: rgba(255,255,255,0.6);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-align: center;
}
.anniv-aujourdhui { color: #c0392b !important; }

.anniv-liste-chrono { display: flex; flex-direction: column; gap: 0.7rem; }
.anniv-ligne {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--blanc);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.anniv-ligne-emoji {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.anniv-ligne-info { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.anniv-ligne-info strong { font-size: 0.95rem; color: var(--texte); }
.anniv-ligne-info span { font-size: 0.78rem; color: var(--texte-doux); }
.anniv-ligne-compte { font-size: 0.82rem; font-weight: 600; color: var(--rose-fonce); flex-shrink: 0; }
.anniv-sans-date { text-align: center; color: var(--texte-doux); font-size: 0.85rem; margin-top: 1.5rem; }

.anniv-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.anniv-form .bloc-input { flex: 1; min-width: 140px; }

/* ===== PHOTOS & SOUVENIRS ===== */
.photos-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.photos-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.photos-form .bloc-input { flex: 1; min-width: 160px; }

.photos-mur { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem; padding: 0.5rem; }

.photo-polaroid {
  position: relative;
  background: white;
  padding: 0.9rem 0.9rem 1.4rem;
  width: 220px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
.photo-polaroid:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 2; }
.photo-polaroid img { width: 100%; height: 200px; object-fit: cover; display: block; cursor: pointer; }
.photo-polaroid-scotch {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 22px;
  background: rgba(253, 245, 200, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.photo-tampon {
  position: absolute;
  bottom: 2.6rem;
  right: 0.8rem;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: bold;
  color: rgba(255,90,90,0.75);
  border: 1px solid rgba(255,90,90,0.6);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  transform: rotate(-8deg);
  background: rgba(255,255,255,0.5);
}
.photo-legende {
  margin-top: 0.7rem;
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  text-align: center;
  color: var(--texte);
  min-height: 1.4rem;
}
.photo-suppr { position: absolute; top: 0.4rem; right: 0.4rem; background: rgba(0,0,0,0.45); color: white; border-radius: 50%; opacity: 0; transition: opacity 0.15s; }
.photo-polaroid:hover .photo-suppr { opacity: 1; }

/* Visionneuse plein écran */
.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99998;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.tirage-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.tirage-overlay.active { display: flex; }
.tirage-overlay-carte {
  background: linear-gradient(135deg, var(--rose) 0%, var(--jaune) 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
  animation: tirageApparition 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tirage-overlay-icon { font-size: 4rem; margin-bottom: 1rem; }
.tirage-overlay-texte { font-size: 1.5rem; font-weight: 700; color: var(--texte); margin-bottom: 2rem; line-height: 1.4; }
.tirage-overlay-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.tirage-overlay-suppr { background: #e74c3c; color: white; }
.tirage-overlay-planifier { display: block; width: 100%; margin-top: 0.8rem; background: var(--bleu, #a8d3f0); }
.photo-lightbox.active { display: flex; }
.photo-lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.photo-lightbox-legende {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: white;
  text-align: center;
}
.photo-lightbox-fermer {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== VOYAGES & SORTIES ===== */
.sorties-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.sorties-colonne {
  background: var(--blanc);
  border: 2px solid var(--rose);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.sorties-colonne h3 { margin-bottom: 0.8rem; color: var(--texte); }
.sorties-colonne .tache-list { margin-bottom: 0.8rem; }

.sorties-colonne-large { grid-column: 1 / -1; }

.vacances-tableau-wrap {
  overflow-x: auto;
  margin-bottom: 1.2rem;
  border: 1px solid #eee;
  border-radius: 12px;
}
.vacances-tableau { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; font-size: 0.88rem; }
.vacances-tableau th {
  text-align: left;
  padding: 0.65rem 1rem;
  background: var(--rose);
  color: var(--texte);
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid #eee;
}
.vacances-tableau th:first-child { width: 26%; }
.vacances-tableau td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f3f3f3;
  border-left: 1px solid #f3f3f3;
  color: var(--texte);
  white-space: nowrap;
}
.vacances-tableau td:first-child { border-left: none; }
.vacances-tableau tr:last-child td { border-bottom: none; }
.vacances-tableau tbody tr:nth-child(even) { background: #fafafa; }
.vacances-periode-nom { font-weight: 700; font-size: 1.1rem; color: var(--texte); }
.vacances-cellule-vide { color: #ccc; text-align: center; }
.vacances-cellule-cours { background: var(--jaune) !important; color: var(--texte); font-weight: 700; }
.vacances-zones-detail { font-size: 0.8rem; color: var(--texte-doux); line-height: 1.7; }

@media (max-width: 600px) {
  .vacances-tableau-wrap { overflow: visible; border: none; }
  .vacances-tableau { min-width: 0; width: 100%; }
  .vacances-tableau thead { display: none; }
  .vacances-tableau, .vacances-tableau tbody, .vacances-tableau tr, .vacances-tableau td { display: block; width: 100%; }
  .vacances-tableau tr {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
  }
  .vacances-tableau tbody tr:nth-child(even) { background: var(--blanc); }
  .vacances-tableau td {
    border-left: none;
    white-space: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .vacances-tableau td[data-label]::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--texte-doux);
  }
  .vacances-periode-nom { background: var(--rose); font-size: 1rem; }
}
.vacances-zones-detail strong { color: var(--texte); }
.vacances-badge {
  flex-shrink: 0;
  background: rgba(255,255,255,0.7);
  color: var(--texte);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  white-space: nowrap;
}
.vacances-badge-cours { background: var(--rose-fonce); color: white; }
.vacances-vide { font-size: 0.85rem; color: var(--texte-doux); text-align: center; padding: 1rem 0; }
.vacances-note { font-size: 0.72rem; color: var(--texte-doux); margin-top: 0.8rem; text-align: center; }

/* ===== BOÎTE À IDÉES (bocaux) ===== */
.bocaux-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.bocaux-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.bocal-carte {
  background: var(--blanc);
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bocal-carte:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(240,168,187,0.3); }
.bocal-titre {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--texte);
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  background: var(--rose);
  border-radius: 50px;
}
.bocal-visuel {
  height: 130px;
  border: 3px solid #e3e3e3;
  border-top: none;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, rgba(214,234,248,0.15) 0%, rgba(214,234,248,0.35) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.7rem;
  position: relative;
  margin: 0 auto 1rem;
  max-width: 150px;
  box-shadow: inset 0 -8px 16px rgba(0,0,0,0.04);
}
.bocal-visuel::before {
  content: '';
  position: absolute;
  top: -9px;
  left: -3px;
  right: -3px;
  height: 11px;
  border: 3px solid #e3e3e3;
  border-radius: 6px;
  background: var(--blanc);
}
.bocal-papiers { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; }
.bocal-papier { width: 16px; height: 22px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.bocal-compte { font-size: 0.82rem; color: var(--texte-doux); margin-bottom: 1rem; font-weight: 600; }
.bocal-ajouter-btn { width: 100%; padding: 0.65rem; font-size: 0.85rem; border-radius: 50px; }

.tirage-zone {
  background: linear-gradient(135deg, var(--blanc) 0%, #fdf9ee 100%);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border: 2px dashed var(--rose);
}
.tirage-zone h3 { margin-bottom: 1.1rem; color: var(--texte); font-size: 1.2rem; }
.tirage-controles { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-bottom: 1.3rem; }
.tirage-controles select { border-radius: 50px; border: 1.5px solid #ddd; padding: 0.5rem 1rem; font-size: 0.9rem; }
.tirage-carte {
  background: linear-gradient(135deg, var(--rose) 0%, var(--jaune) 100%);
  border-radius: 16px;
  padding: 1.8rem;
  max-width: 360px;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 22px rgba(240,168,187,0.4);
  animation: tirageApparition 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes tirageApparition {
  from { opacity: 0; transform: scale(0.8) rotate(-4deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.tirage-carte-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }
.tirage-carte-texte { font-size: 1.1rem; font-weight: 700; color: var(--texte); }
.tirage-vide { font-size: 0.88rem; color: var(--texte-doux); }

/* ===== BAROMÈTRE DE L'HUMEUR ===== */
.humeur-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.humeur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
.humeur-carte {
  border-radius: 18px;
  padding: 1.3rem;
  text-align: center;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.2s ease;
}
.humeur-carte:hover { transform: translateY(-3px); }
.humeur-avatar {
  font-size: 1.8rem;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.65);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.humeur-nom { font-weight: 700; font-size: 0.95rem; color: var(--texte); margin-top: 0.6rem; }
.humeur-emoji-actuel { font-size: 1.9rem; margin-top: 0.5rem; }
.humeur-raison-affichee { font-size: 0.78rem; font-style: italic; color: var(--texte-doux); margin-top: 0.4rem; }

.humeur-saisie {
  background: var(--blanc);
  border-radius: 20px;
  padding: 1.7rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 1.8rem;
}
.humeur-saisie h3 { margin-bottom: 0.2rem; color: var(--texte); font-size: 1.25rem; }
.humeur-souscritre { font-size: 0.82rem; color: var(--texte-doux); margin-bottom: 1.1rem; }
.humeur-choix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 0.6rem; margin-bottom: 1.1rem; }
.humeur-choix-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f6f6f6;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  color: var(--texte);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.humeur-choix-btn:hover { background: var(--rose); transform: translateY(-1px); }
.humeur-choix-actif { background: var(--rose); border-color: var(--rose-fonce); font-weight: 700; box-shadow: 0 2px 8px rgba(240,168,187,0.5); }
.humeur-choix-emoji { font-size: 1.3rem; }
.humeur-saisie input.bloc-input { margin-bottom: 1.1rem; }

.humeur-stats, .humeur-badges, .humeur-courbe {
  background: var(--blanc);
  border-radius: 20px;
  padding: 1.7rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-top: 1.8rem;
}
.humeur-stats h3, .humeur-badges h3, .humeur-courbe h3 { margin-bottom: 1.1rem; color: var(--texte); font-size: 1.2rem; }
.humeur-courbe-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.humeur-courbe-header h3 { margin-bottom: 0; }
.humeur-courbe-header select { border-radius: 50px; border: 1.5px solid #ddd; padding: 0.4rem 1rem; font-size: 0.85rem; font-family: inherit; color: var(--texte); background: white; }
.humeur-courbe-svg { width: 100%; height: auto; }
.humeur-stats-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.3rem; background: #f5f5f5; border-radius: 50px; padding: 0.25rem; }
.humeur-stats-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 50px;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texte-doux);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.humeur-toggle-actif { background: var(--rose-fonce) !important; color: white !important; box-shadow: 0 2px 8px rgba(240,168,187,0.5); }
.humeur-stat-ligne { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.3rem; }
.humeur-stat-prenoms { font-size: 0.68rem; color: #aaa; margin: -0.1rem 0 0.7rem 2rem; }
.humeur-stat-emoji { font-size: 1.3rem; }
.humeur-stat-label { font-size: 0.85rem; color: var(--texte); width: 90px; flex-shrink: 0; }
.humeur-stat-barre-wrap { flex: 1; height: 11px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.humeur-stat-barre { height: 100%; background: linear-gradient(90deg, var(--rose) 0%, var(--rose-fonce) 100%); border-radius: 6px; transition: width 0.4s ease; }
.humeur-stat-count { font-size: 0.82rem; font-weight: 700; color: var(--texte-doux); width: 24px; text-align: right; }
.humeur-stats-vide { font-size: 0.85rem; color: var(--texte-doux); text-align: center; padding: 0.5rem 0; }

.humeur-badge-carte {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--jaune) 0%, #fdf3c4 100%);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.humeur-badge-icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}
.humeur-badge-desc { font-size: 0.78rem; color: var(--texte-doux); margin-top: 0.1rem; }

/* ===== SURPRISE QUOTIDIENNE ===== */
.surprise-page { max-width: 560px; margin: 0 auto; padding: 2rem 1rem 3rem; text-align: center; }
.surprise-serie {
  display: inline-block;
  background: #fff1d6;
  color: #a65f00;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.surprise-carte {
  background: linear-gradient(135deg, var(--rose) 0%, var(--jaune) 100%);
  border-radius: 22px;
  padding: 2.4rem 1.8rem;
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}
.surprise-emoji { font-size: 3.2rem; margin-bottom: 0.6rem; }
.surprise-titre { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texte-doux); }
.surprise-texte { font-size: 1.2rem; color: var(--texte); font-weight: 600; margin: 0.8rem 0 1.4rem; line-height: 1.5; }
.surprise-faite { opacity: 0.7; }
.surprise-note { font-size: 0.78rem; color: var(--texte-doux); margin-top: 1.2rem; }
.surprise-reponse-btn {
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texte);
  cursor: pointer;
  margin-bottom: 1rem;
}
.surprise-reponse {
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 1.4rem;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--rose);
  text-align: center;
  padding: 2.5rem 2rem;
}

.footer-logo {
  font-size: 2rem;
  color: var(--rose-fonce);
  margin-bottom: 0.5rem;
}

footer p:last-child {
  color: var(--texte-doux);
  font-size: 0.88rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }

  nav ul { display: none; }

  .two-col { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .app-accueil-titre {
    font-size: 2.2rem;
    line-height: 1.4;
    padding: 0.2rem 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .cloche-dropdown {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 7.5rem;
    width: auto;
  }

  .feature-topbar h2 { font-size: 2rem; }
  .feature-topbar { padding: 1rem; gap: 0.8rem; }

  nav { padding: 0.6rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .famille-info { display: none !important; }
  .nav-right { gap: 0.6rem; flex-wrap: nowrap; }
  .landing-header nav { padding: 0.6rem 1rem; }
  .logo-landing { font-size: 1.7rem !important; }

  .podium-stage { gap: 0.6rem; max-width: 100%; }
  .podium-avatar-membre { font-size: 2.2rem; }
  .podium-nom-membre { font-size: 1.05rem; }
  .podium-chiffre { font-size: 1.6rem; }

  .courses-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .courses-wrapper { flex-direction: column; }
  .crayon-deco { display: none; }

  .auth-titre { font-size: 2rem; }
}

@media (max-width: 480px) {
  .app-accueil { padding: 2rem 1rem 1.8rem; }
  .app-accueil-titre { font-size: 1.9rem; }
  .landing-outils-grid { grid-template-columns: 1fr; }
}
