@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600&display=swap');



:root {

  --bg-cream: #FDFBF7; /* Warm soft cream */

  --bg-card: #FFFFFF;

  --bg-glass: rgba(255, 255, 255, 0.85);

  --primary-terracotta: #D4A373; /* Golden earth */

  --primary-rose: #E07A5F; /* Soft warm terracotta rose */

  --gradient-premium-gold: linear-gradient(135deg, #FFF8E1 0%, #FADADD 100%); /* Warm soft cream to ultra-light blush */

  --primary-pink: #F4D35E; /* Warm accent yellow/gold */

  --primary-sage: #81B29A; /* Soft sage green */

  --accent-purple: #9B5DE5; /* Soft mauve for medical */

  --text-dark: #3D405B; /* Slate charcoal */

  --text-light: #7D809A;

  --border-color: #F0EAE1;

  --shadow-sm: 0 4px 6px -1px rgba(61, 64, 91, 0.04);

  --shadow-md: 0 10px 20px -3px rgba(61, 64, 91, 0.06), 0 4px 12px -2px rgba(61, 64, 91, 0.04);

  --shadow-lg: 0 25px 35px -5px rgba(61, 64, 91, 0.08), 0 15px 20px -5px rgba(61, 64, 91, 0.03);

  --font-serif: 'Playfair Display', Georgia, serif;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --font-alt: 'Montserrat', sans-serif;

  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 8px;

  --radius-md: 16px;

  --radius-lg: 24px;

}



/* ================================================

   🌸 MAMA LOADER — Page & IA Generation Overlay

   ================================================ */



#mama-page-loader {

  position: fixed;

  inset: 0;

  z-index: 99999;

  background: linear-gradient(135deg, #FDFBF7 0%, #fef3ee 50%, #f9f5ff 100%);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 1.25rem;

  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s;

  opacity: 1;

  visibility: visible;

}



#mama-page-loader.hidden {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

}



.mama-loader-flower {

  font-size: 3.2rem;

  line-height: 1;

  animation: mama-flower-spin 1.6s linear infinite;

  filter: drop-shadow(0 4px 16px rgba(224,122,95,0.35));

  transform-origin: center center;

}



.mama-loader-text {

  font-family: 'Playfair Display', Georgia, serif;

  font-size: 1.05rem;

  color: #D4A373;

  letter-spacing: 0.06em;

  font-weight: 600;

  animation: mama-pulse-text 2s ease-in-out infinite;

}



.mama-loader-dots::after {

  content: '';

  animation: mama-dots 1.4s steps(4, end) infinite;

}



@keyframes mama-flower-spin {

  0%   { transform: rotate(0deg) scale(1); }

  25%  { transform: rotate(90deg) scale(1.08); }

  50%  { transform: rotate(180deg) scale(1); }

  75%  { transform: rotate(270deg) scale(1.08); }

  100% { transform: rotate(360deg) scale(1); }

}



@keyframes mama-pulse-text {

  0%, 100% { opacity: 0.7; }

  50%       { opacity: 1; }

}



@keyframes mama-dots {

  0%   { content: ''; }

  25%  { content: '.'; }

  50%  { content: '..'; }

  75%  { content: '...'; }

  100% { content: ''; }

}



/* ---- Loader IA inline (boutons génération) ---- */

#mama-ai-loader {

  position: fixed;

  inset: 0;

  z-index: 9998;

  background: rgba(253, 251, 247, 0.82);

  backdrop-filter: blur(6px);

  -webkit-backdrop-filter: blur(6px);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  opacity: 0;

  visibility: hidden;

  transition: opacity 0.3s ease, visibility 0.3s;

}



#mama-ai-loader.active {

  opacity: 1;

  visibility: visible;

}



.mama-ai-loader-flower {

  font-size: 2.8rem;

  animation: mama-flower-spin 1.2s linear infinite;

  filter: drop-shadow(0 4px 14px rgba(155,93,229,0.4));

}



.mama-ai-loader-label {

  font-family: 'Playfair Display', Georgia, serif;

  font-size: 1rem;

  color: #9B5DE5;

  font-weight: 600;

  letter-spacing: 0.04em;

  animation: mama-pulse-text 1.5s ease-in-out infinite;

}



/* Base resets and defaults */

* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body {

  font-family: var(--font-sans);

  background-color: var(--bg-cream);

  color: var(--text-dark);

  line-height: 1.6;

  overflow-x: hidden;

  background-image: 

    radial-gradient(at 10% 10%, rgba(244, 211, 94, 0.15) 0px, transparent 50%),

    radial-gradient(at 90% 20%, rgba(224, 122, 95, 0.12) 0px, transparent 50%),

    radial-gradient(at 50% 80%, rgba(129, 178, 154, 0.1) 0px, transparent 50%);

  background-attachment: scroll;

}



h1, h2, h3, h4 {

  font-family: var(--font-serif);

  color: var(--text-dark);

  font-weight: 700;

}



p {

  color: var(--text-light);

}



a {

  color: var(--primary-rose);

  text-decoration: none;

  transition: var(--transition-smooth);

}



a:hover {

  color: var(--primary-terracotta);

}



button {

  cursor: pointer;

  border: none;

  outline: none;

  font-family: var(--font-alt);

  font-weight: 600;

  transition: var(--transition-smooth);

}



/* Header & Navigation */

header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 1.5rem 5%;

  background: var(--bg-glass);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border-color);

  position: sticky;

  top: 0;

  z-index: 100;

}



.logo-container {

  display: flex;

  align-items: center;

  gap: 0.75rem;

}



.logo-img {

  width: 45px;

  height: 45px;

  border-radius: 50%;

  object-fit: cover;

  border: 2px solid var(--primary-terracotta);

}



.logo-text {

  font-size: 1.6rem;

  font-weight: 700;

  background: linear-gradient(135deg, var(--primary-rose), var(--primary-terracotta));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  letter-spacing: -0.5px;

}



.header-tagline {

  font-family: var(--font-serif);

  font-style: italic;

  font-size: 1.05rem;

  color: var(--text-light);

  font-weight: 500;

  text-align: center;

}



@media (max-width: 768px) {

  .header-tagline {

    display: none;

  }

}



.header-actions {

  display: flex;

  gap: 1rem;

}



.btn-settings {

  background: transparent;

  color: var(--text-light);

  border: 1px solid var(--border-color);

  padding: 0.5rem 1rem;

  border-radius: var(--radius-sm);

  display: flex;

  align-items: center;

  gap: 0.5rem;

  font-size: 0.9rem;

}



.btn-settings:hover {

  background: var(--bg-cream);

  color: var(--text-dark);

  border-color: var(--primary-terracotta);

}



/* Hero Section */

.hero {

  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: 4rem;

  padding: 4rem 5%;

  max-width: 1300px;

  margin: 0 auto;

  align-items: center;

}



.hero-content h1 {

  font-size: 3rem;

  line-height: 1.2;

  margin-bottom: 1.5rem;

  color: var(--text-dark);

}



.hero-content h1 span {

  color: var(--primary-rose);

  font-style: italic;

}



.hero-content p {

  font-size: 1.15rem;

  margin-bottom: 2.5rem;

  max-width: 600px;

}



.hero-form-card {

  background: var(--bg-card);

  padding: 2.5rem;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-lg);

  border: 1px solid var(--border-color);

  position: relative;

  overflow: hidden;

}



.hero-form-card::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 5px;

  background: linear-gradient(90deg, var(--primary-rose), var(--primary-terracotta), var(--primary-sage));

}



.form-group {

  margin-bottom: 1.5rem;

}



.form-group label {

  display: block;

  font-family: var(--font-alt);

  font-size: 0.9rem;

  font-weight: 600;

  margin-bottom: 0.5rem;

  color: var(--text-dark);

}



.input-date {

  width: 100%;

  padding: 1rem;

  border: 2px solid var(--border-color);

  border-radius: var(--radius-sm);

  font-family: var(--font-sans);

  font-size: 1rem;

  color: var(--text-dark);

  background-color: var(--bg-cream);

  transition: var(--transition-smooth);

}



.input-date:focus {

  border-color: var(--primary-rose);

  background-color: #FFF;

  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.1);

}



.checkbox-group {

  display: flex;

  gap: 1.5rem;

  margin-bottom: 2rem;

}



.checkbox-container {

  display: flex;

  align-items: center;

  position: relative;

  padding-left: 28px;

  cursor: pointer;

  font-size: 0.9rem;

  user-select: none;

  font-family: var(--font-alt);

  font-weight: 500;

  color: var(--text-light);

}



.checkbox-container input {

  position: absolute;

  opacity: 0;

  cursor: pointer;

  height: 0;

  width: 0;

}



.checkmark {

  position: absolute;

  top: 1px;

  left: 0;

  height: 20px;

  width: 20px;

  background-color: var(--bg-cream);

  border: 2px solid var(--border-color);

  border-radius: 4px;

  transition: var(--transition-smooth);

}



.checkbox-container:hover input ~ .checkmark {

  border-color: var(--primary-rose);

}



.checkbox-container input:checked ~ .checkmark {

  background-color: var(--primary-rose);

  border-color: var(--primary-rose);

}



.checkmark:after {

  content: "";

  position: absolute;

  display: none;

}



.checkbox-container input:checked ~ .checkmark:after {

  display: block;

}



.checkbox-container .checkmark:after {

  left: 6px;

  top: 2px;

  width: 5px;

  height: 10px;

  border: solid white;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);

}



.btn-generate {

  width: 100%;

  padding: 1.1rem;

  background: linear-gradient(135deg, var(--primary-rose), var(--primary-terracotta));

  color: white;

  font-size: 1.1rem;

  border-radius: var(--radius-sm);

  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.25);

}



.btn-generate:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(224, 122, 95, 0.35);

}



.hero-image-container {

  position: relative;

  display: flex;

  justify-content: center;

}



.hero-image {

  width: 100%;

  max-width: 450px;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-lg);

  transform: rotate(1deg);

  transition: var(--transition-smooth);

  border: 8px solid white;

}



.hero-image:hover {

  transform: rotate(0deg) scale(1.02);

}



/* Loading/Pulse Section */

.loading-section {

  display: none; /* Controlled by JS */

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 6rem 5%;

  text-align: center;

}



.pulse-baby {

  width: 100px;

  height: 100px;

  background-color: var(--primary-rose);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: white;

  font-size: 2.5rem;

  animation: pulse 2s infinite ease-in-out;

  margin-bottom: 2rem;

  box-shadow: 0 0 30px rgba(224, 122, 95, 0.4);

}



@keyframes pulse {

  0% {

    transform: scale(0.9);

    box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.7);

  }

  70% {

    transform: scale(1.1);

    box-shadow: 0 0 0 25px rgba(224, 122, 95, 0);

  }

  100% {

    transform: scale(0.9);

    box-shadow: 0 0 0 0 rgba(224, 122, 95, 0);

  }

}



.loading-text {

  font-family: var(--font-serif);

  font-size: 1.8rem;

  margin-bottom: 0.75rem;

  color: var(--text-dark);

}



.loading-sub {

  color: var(--text-light);

  font-size: 1.1rem;

}



/* Dashboard Layout */

.dashboard {

  display: none; /* Controlled by JS */

  grid-template-columns: 320px 1fr;

  gap: 2.5rem;

  padding: 2rem 4%;

  max-width: 1440px;

  margin: 0 auto 5rem auto;

}



/* Left Panel - Pregnancy Status */

.status-panel {

  display: flex;

  flex-direction: column;

  gap: 1.5rem;

  min-width: 0;

}



.status-card {

  background: var(--bg-card);

  padding: 2rem;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);

  border: 1px solid var(--border-color);

  text-align: center;

}



.progress-circle-container {

  position: relative;

  width: 140px;

  height: 140px;

  margin: 0 auto 1.5rem auto;

}



.progress-svg {

  width: 100%;

  height: 100%;

  transform: rotate(-90deg);

}



.progress-bg {

  fill: none;

  stroke: var(--bg-cream);

  stroke-width: 10;

}



.progress-bar {

  fill: none;

  stroke: var(--primary-rose);

  stroke-width: 10;

  stroke-dasharray: 408;

  stroke-dashoffset: 408;

  stroke-linecap: round;

  transition: stroke-dashoffset 1s ease-out;

}



.progress-text {

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  font-family: var(--font-alt);

  font-weight: 700;

  font-size: 1.4rem;

  color: var(--text-dark);

}



.status-stat {

  margin-top: 1rem;

}



.stat-label {

  font-family: var(--font-alt);

  font-size: 0.85rem;

  font-weight: 600;

  text-transform: uppercase;

  color: var(--text-light);

  letter-spacing: 1px;

}



.stat-val {

  font-family: var(--font-serif);

  font-size: 1.8rem;

  color: var(--text-dark);

  font-weight: 700;

  margin-bottom: 0.25rem;

}



.baby-size-card {

  background: var(--bg-card);

  padding: 1.5rem;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  border: 1px solid var(--border-color);

  text-align: center;

}



.baby-size-icon {

  font-size: 2.2rem;

  margin-bottom: 0.5rem;

}



.baby-size-title {

  font-weight: 600;

  margin-bottom: 0.25rem;

  font-family: var(--font-alt);

}



.baby-size-desc {

  font-size: 0.9rem;

}



/* Central Panel - Agenda Timeline */

.timeline-panel {

  display: flex;

  flex-direction: column;

  gap: 1.5rem;

  min-width: 0;

}



.timeline-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: var(--bg-card);

  padding: 1.25rem 2rem;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  border: 1px solid var(--border-color);

}



.timeline-header h2 {

  font-size: 1.8rem;

}



.export-group {

  display: flex;

  gap: 0.75rem;

}



.btn-export {

  background: var(--bg-cream);

  color: var(--text-dark);

  border: 1px solid var(--border-color);

  padding: 0.6rem 1.2rem;

  border-radius: var(--radius-sm);

  font-size: 0.9rem;

  display: flex;

  align-items: center;

  gap: 0.5rem;

}



.btn-export:hover {

  background: var(--primary-rose);

  color: white;

  border-color: var(--primary-rose);

}



.btn-export-all {

  background: var(--primary-rose);

  color: white;

  padding: 0.6rem 1.2rem;

  border-radius: var(--radius-sm);

  font-size: 0.9rem;

  display: flex;

  align-items: center;

  gap: 0.5rem;

}



.btn-export-all:hover {

  background: #c9654b;

  transform: translateY(-1px);

}



/* Timeline Filters */

/* Container de Filtres de l'Agenda */

.agenda-filters-container {

  background: var(--bg-card);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  padding: 1.5rem;

  box-shadow: var(--shadow-sm);

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

  margin-bottom: 1.5rem;

}



/* Ligne Commutateur Temporel */

.timeframe-switcher-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 1rem;

  border-bottom: 1px solid var(--border-color);

  padding-bottom: 1rem;

}



.timeframe-switcher {

  display: flex;

  background: var(--bg-cream);

  padding: 0.25rem;

  border-radius: 50px;

  border: 1px solid var(--border-color);

}



.time-switch-btn {

  background: transparent;

  border: none;

  padding: 0.5rem 1.5rem;

  border-radius: 50px;

  font-family: var(--font-alt);

  font-size: 0.9rem;

  font-weight: 600;

  color: var(--text-light);

  transition: var(--transition-smooth);

  user-select: none;

}



.time-switch-btn.active {

  background: var(--bg-card);

  color: var(--primary-rose);

  box-shadow: var(--shadow-sm);

}



.btn-reset-filters {

  background: transparent;

  border: none;

  font-family: var(--font-alt);

  font-size: 0.85rem;

  font-weight: 600;

  color: var(--primary-rose);

  display: flex;

  align-items: center;

  gap: 0.4rem;

  padding: 0.5rem 1rem;

  border-radius: var(--radius-sm);

  border: 1px dashed var(--primary-rose);

  transition: var(--transition-smooth);

}



.btn-reset-filters:hover {

  background: rgba(224, 122, 95, 0.05);

  color: var(--primary-terracotta);

  border-color: var(--primary-terracotta);

}



/* Ligne des groupes de filtres */

.filter-groups-panel {

  display: flex;

  flex-direction: column;

  gap: 1rem;

}



.filter-group {

  display: flex;

  align-items: center;

  gap: 1rem;

  flex-wrap: wrap;

}



.filter-group-label {

  font-family: var(--font-alt);

  font-size: 0.85rem;

  font-weight: 600;

  color: var(--text-dark);

  min-width: 100px;

}



.filter-chips-wrapper {

  display: flex;

  gap: 0.5rem;

  flex-wrap: wrap;

}



/* Badge multi-sélection */

.filter-chip-multi {
  background: var(--bg-cream);
  border: 1.5px solid var(--border-color);
  color: var(--text-light);
  padding: 0.38rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-family: var(--font-alt);
  font-weight: 600;
  transition: var(--transition-smooth);
  user-select: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filter-chip-multi:hover {
  background: var(--bg-card);
  border-color: var(--text-light);
  color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

/* Active trimester */
.filter-chip-multi.active[data-type="trimester"] {
  background: var(--primary-terracotta);
  color: white;
  border-color: var(--primary-terracotta);
  box-shadow: 0 3px 12px rgba(212,163,115,0.35);
}

/* Active category — couleur propre à chaque catégorie */
.filter-chip-multi.active.tag-ultrasound {
  background: linear-gradient(135deg, #f8bbd0, #fce4ec);
  color: #c2185b;
  border-color: #f48fb1;
  box-shadow: 0 3px 12px rgba(194,24,91,0.20);
}
.filter-chip-multi.active.tag-medical {
  background: linear-gradient(135deg, #d1c4e9, #ede7f6);
  color: #6a1b9a;
  border-color: #b39ddb;
  box-shadow: 0 3px 12px rgba(106,27,154,0.20);
}
.filter-chip-multi.active.tag-wellness {
  background: linear-gradient(135deg, #c8e6c9, #e8f5e9);
  color: #2e7d32;
  border-color: #a5d6a7;
  box-shadow: 0 3px 12px rgba(46,125,50,0.20);
}
.filter-chip-multi.active.tag-admin {
  background: linear-gradient(135deg, #ffe0b2, #fff3e0);
  color: #e65100;
  border-color: #ffcc80;
  box-shadow: 0 3px 12px rgba(230,81,0,0.20);
}
.filter-chip-multi.active.tag-prep {
  background: linear-gradient(135deg, #fff9c4, #fffde7);
  color: #f57f17;
  border-color: #fff176;
  box-shadow: 0 3px 12px rgba(245,127,23,0.20);
}
.filter-chip-multi.active.tag-maternity {
  background: linear-gradient(135deg, #ffccbc, #fce4ec);
  color: #ad1457;
  border-color: #f48fb1;
  box-shadow: 0 3px 12px rgba(173,20,87,0.20);
}
.filter-chip-multi.active.tag-perso {
  background: linear-gradient(135deg, #bbdefb, #e3f2fd);
  color: #1565c0;
  border-color: #90caf9;
  box-shadow: 0 3px 12px rgba(21,101,192,0.20);
}



/* Timeline Event List */

.event-list {

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

}



.event-card {

  background: var(--bg-card);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-color);

  box-shadow: var(--shadow-sm);

  display: grid;

  grid-template-columns: 140px 1fr;

  overflow: hidden;

  transition: var(--transition-smooth);

  position: relative;

}



.event-card:hover {

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

  border-color: var(--primary-terracotta);

}



.event-time-badge {

  background: var(--bg-cream);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 1.5rem;

  border-right: 1px solid var(--border-color);

  text-align: center;

}



.badge-sa {

  font-family: var(--font-alt);

  font-weight: 700;

  font-size: 1.2rem;

  color: var(--primary-rose);

}



.badge-sg {

  font-size: 0.8rem;

  color: var(--text-light);

  margin-bottom: 0.5rem;

}



.badge-date {

  font-size: 0.9rem;

  font-weight: 600;

  color: var(--text-dark);

}



.event-content {

  padding: 1.5rem;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

}



.event-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  margin-bottom: 0.5rem;

  gap: 1rem;

}



.event-title {

  font-size: 1.25rem;

  line-height: 1.3;

}



.category-tag {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
}

/* Category Colors — vibrant pill badges */
.tag-ultrasound {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: #c2185b;
  border-color: #f48fb1;
}
.tag-medical {
  background: linear-gradient(135deg, #ede7f6, #d1c4e9);
  color: #6a1b9a;
  border-color: #b39ddb;
}
.tag-wellness {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  border-color: #a5d6a7;
}
.tag-admin {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
  border-color: #ffcc80;
}
.tag-prep {
  background: linear-gradient(135deg, #fffde7, #fff9c4);
  color: #f57f17;
  border-color: #fff176;
}
.tag-maternity {
  background: linear-gradient(135deg, #fce4ec, #ffccbc);
  color: #ad1457;
  border-color: #f48fb1;
}
.tag-perso {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border-color: #90caf9;
}



.event-desc {

  font-size: 0.95rem;

  color: var(--text-light);

  margin-bottom: 1.25rem;

}



.event-footer {

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-top: 1px solid var(--border-color);

  padding-top: 0.75rem;

}



.btn-event-action {

  background: transparent;

  color: var(--primary-rose);

  font-size: 0.85rem;

  display: flex;

  align-items: center;

  gap: 0.4rem;

}



.btn-event-action:hover {

  color: var(--primary-terracotta);

}



.partner-indicator {

  font-size: 0.85rem;

  color: var(--primary-sage);

  font-weight: 500;

  display: flex;

  align-items: center;

  gap: 0.3rem;

  cursor: pointer;

  animation: shake 5s infinite;

}



@keyframes shake {

  0%, 100% { transform: translateX(0); }

  90% { transform: translateX(3px); }

  92% { transform: translateX(-3px); }

  94% { transform: translateX(3px); }

  96% { transform: translateX(-3px); }

}



/* Right Panel - Recommendations (Sliding Drawer) */

.recommendations-panel {

  position: fixed;

  top: 0;

  right: -380px; /* Hidden by default */

  width: 360px;

  height: 100vh;

  background: var(--bg-card);

  box-shadow: -5px 0 25px rgba(61, 64, 91, 0.15);

  border-left: 1px solid var(--border-color);

  z-index: 150;

  transition: var(--transition-smooth);

  padding: 3.5rem 1.5rem 1.5rem 1.5rem;

  overflow-y: auto;

}



.recommendations-panel.active {

  right: 0; /* Slide in! */

}



.btn-close-drawer {

  position: absolute;

  top: 1rem;

  right: 1.5rem;

  background: transparent;

  border: none;

  font-size: 2rem;

  color: var(--text-light);

  cursor: pointer;

  transition: var(--transition-smooth);

  line-height: 1;

}



.btn-close-drawer:hover {

  color: var(--text-dark);

  transform: scale(1.1);

}



.ad-card {

  background: var(--bg-card);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);

  border: 1px solid var(--border-color);

  overflow: hidden;

  position: relative;

}



.ad-image {

  width: 100%;

  height: 180px;

  object-fit: cover;

  border-bottom: 1px solid var(--border-color);

}



.ad-content {

  padding: 1.5rem;

}



.ad-badge {

  display: inline-block;

  background: rgba(129, 178, 154, 0.15);

  color: var(--primary-sage);

  font-family: var(--font-alt);

  font-weight: 600;

  font-size: 0.75rem;

  padding: 0.2rem 0.6rem;

  border-radius: 4px;

  margin-bottom: 0.75rem;

  text-transform: uppercase;

}



.ad-title {

  font-size: 1.3rem;

  margin-bottom: 0.5rem;

  line-height: 1.3;

}



.ad-text {

  font-size: 0.9rem;

  color: var(--text-light);

  margin-bottom: 1.5rem;

}



.btn-ad {

  display: block;

  text-align: center;

  background: var(--primary-sage);

  color: white;

  padding: 0.75rem;

  border-radius: var(--radius-sm);

  font-family: var(--font-alt);

  font-weight: 600;

  box-shadow: 0 4px 12px rgba(129, 178, 154, 0.2);

}



.btn-ad:hover {

  background: #6a9c84;

  color: white;

  transform: translateY(-1px);

  box-shadow: 0 6px 15px rgba(129, 178, 154, 0.3);

}



/* Modals */

.modal-overlay {

  display: none; /* Controlled by JS */

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(61, 64, 91, 0.5);

  backdrop-filter: blur(5px);

  z-index: 1000000;

  align-items: center;

  justify-content: center;

  padding: 1.5rem;

}



.modal-card {

  position: relative !important;

  width: 90% !important;

  height: 90% !important;

  max-width: 90vw !important;

  max-height: 90vh !important;

  border-radius: var(--radius-lg) !important;

  background: var(--bg-card) !important;

  border: 1px solid var(--border-color) !important;

  box-shadow: var(--shadow-lg) !important;

  display: flex !important;

  flex-direction: column !important;

  overflow: hidden !important;

  margin: 0 !important;

  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  box-sizing: border-box !important;

}



@keyframes modalIn {

  from {

    transform: scale(0.9) translateY(20px);

    opacity: 0;

  }

  to {

    transform: scale(1) translateY(0);

    opacity: 1;

  }

}



.modal-header {

  padding: 1.5rem;

  border-bottom: 1px solid var(--border-color);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.modal-title {

  font-size: 1.4rem;

}



.btn-close-modal {

  background: transparent;

  color: var(--text-light);

  font-size: 1.5rem;

}



.btn-close-modal:hover {

  color: var(--text-dark);

}



.modal-body {

  flex: 1 !important;

  overflow-y: auto !important;

  padding: 2rem !important;

  background-color: var(--bg-cream) !important;

  box-sizing: border-box !important;

}



/* Barre de défilement personnalisée pour le corps des modales */

.modal-body::-webkit-scrollbar {

  width: 8px;

}

.modal-body::-webkit-scrollbar-track {

  background: var(--bg-cream);

}

.modal-body::-webkit-scrollbar-thumb {

  background-color: var(--primary-rose);

  border-radius: 20px;

  border: 2px solid var(--bg-cream);

}

.modal-body::-webkit-scrollbar-thumb:hover {

  background-color: #d06d52;

}



.modal-footer {

  padding: 1.25rem 1.5rem;

  background: var(--bg-cream);

  border-top: 1px solid var(--border-color);

  display: flex;

  justify-content: flex-end;

  gap: 0.75rem;

}



.btn-modal-cancel {

  background: transparent;

  color: var(--text-light);

  padding: 0.5rem 1rem;

  border-radius: var(--radius-sm);

}



.btn-modal-save {

  background: var(--primary-rose);

  color: white;

  padding: 0.5rem 1.25rem;

  border-radius: var(--radius-sm);

  box-shadow: 0 4px 10px rgba(224, 122, 95, 0.2);

}



.btn-modal-save:hover {

  background: #c9654b;

}



.input-text {

  width: 100%;

  padding: 0.8rem;

  border: 2px solid var(--border-color);

  border-radius: var(--radius-sm);

  font-family: var(--font-sans);

  font-size: 0.95rem;

  margin-bottom: 1rem;

}



.input-text:focus {

  border-color: var(--primary-rose);

  outline: none;

}



/* Toggle de méthode de calcul */

.calc-method-toggle {

  display: flex;

  gap: 0.5rem;

  background: var(--bg-cream);

  padding: 0.25rem;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-color);

  margin-bottom: 1.5rem;

}



.method-tab {

  flex: 1;

  text-align: center;

  padding: 0.6rem;

  cursor: pointer;

  font-size: 0.85rem;

  font-family: var(--font-alt);

  font-weight: 600;

  border-radius: 4px;

  color: var(--text-light);

  transition: var(--transition-smooth);

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0.5rem;

  user-select: none;

}



.method-tab input[type="radio"] {

  display: none;

}



.method-tab:hover {

  color: var(--text-dark);

}



.method-tab.active {

  background: var(--bg-card);

  color: var(--primary-rose);

  box-shadow: var(--shadow-sm);

}



/* Boutons onglets d'authentification */

.auth-tab-btn {

  border: none;

  cursor: pointer;

  padding-bottom: 0.25rem;

  transition: var(--transition-smooth);

  font-family: var(--font-serif);

  font-weight: 600;

}

.auth-tab-btn.active {

  color: var(--primary-rose);

  border-bottom: 2px solid var(--primary-rose);

}

.auth-tab-btn:not(.active) {

  color: var(--text-light);

  border-bottom: 2px solid transparent;

}



/* Encart partenaire dans les cartes de la timeline */

.card-partner-ad {

  display: block;

  background: transparent;

  border: none;

  border-radius: 0;

  padding: 0;

  margin-top: 0.75rem;

  align-self: flex-start;

  width: 100%;

  max-width: 100%;

  font-size: 0.85rem;

  color: var(--primary-sage);

  font-weight: 500;

  cursor: pointer;

  transition: var(--transition-smooth);

  text-align: left;

  line-height: 1.4;

}



.card-partner-ad:hover {

  background: transparent;

  box-shadow: none;

  transform: none;

  text-decoration: underline;

  color: #6a9c84;

}



/* Onglets Dashboard Mobile */

.dashboard-mobile-tabs {

  display: none;

}



/* Responsiveness & Mobile Blocks Optimization */

@media (max-width: 1100px) {

  .dashboard {

    grid-template-columns: minmax(0, 1fr);

    gap: 2rem;

  }

  

  .status-panel {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1.5rem;

  }



  /* Onglets Dashboard Mobile */

  .dashboard-mobile-tabs {

    display: flex;

    justify-content: center;

    gap: 0.5rem;

    margin-bottom: 1.5rem;

    width: 100%;

    background: #F4F1EA;

    padding: 0.3rem;

    border-radius: var(--radius-sm);

    border: 1px solid var(--border-color);

  }

  

  .db-tab-btn {

    flex: 1;

    text-align: center;

    padding: 0.75rem 0.5rem;

    font-size: 0.85rem;

    font-family: var(--font-alt);

    font-weight: 600;

    border-radius: var(--radius-sm);

    color: var(--text-light);

    background: transparent;

    transition: var(--transition-smooth);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.4rem;

    border: none;

    cursor: pointer;

  }

  

  .db-tab-btn.active {

    background: var(--bg-card);

    color: var(--primary-rose);

    box-shadow: var(--shadow-sm);

  }

  

  .mobile-hidden {

    display: none !important;

  }

}



@media (max-width: 768px) {

  .dashboard {

    padding: 1rem 12px;

    gap: 1.25rem;

    grid-template-columns: minmax(0, 1fr);

  }



  /* Rendu lisible des tableaux d'administration sur mobile (Cards) */

  .admin-table {

    display: block !important;

    width: 100% !important;

    border: none !important;

    background: transparent !important;

  }

  

  .admin-table thead {

    display: none !important; /* Masquer la ligne d'en-tête encombrante */

  }

  

  .admin-table tbody {

    display: block !important;

    width: 100% !important;

  }

  

  .admin-table tr {

    display: block !important;

    background: var(--bg-card) !important;

    border: 1px solid var(--border-color) !important;

    border-radius: var(--radius-md) !important;

    padding: 1rem !important;

    margin-bottom: 1rem !important;

    box-shadow: var(--shadow-sm) !important;

  }

  

  .admin-table td {

    display: flex !important;

    justify-content: space-between !important;

    align-items: center !important;

    padding: 0.5rem 0 !important;

    border-bottom: 1px dashed var(--border-color) !important;

    font-size: 0.85rem !important;

    text-align: right !important;

  }

  

  .admin-table td:last-child {

    border-bottom: none !important;

  }

  

  /* Utiliser l'attribut data-label ou le titre pour générer une étiquette à gauche si possible, 

     sinon les données s'alignent simplement de manière flexible */

  .admin-table td::before {

    content: attr(data-label);

    font-weight: 600;

    color: var(--text-light);

    float: left;

    text-align: left;

    margin-right: 1rem;

  }



  /* Responsive filters */

  .agenda-filters-container {

    padding: 1rem;

    gap: 1rem;

  }

  

  .timeframe-switcher-row {

    flex-direction: column;

    align-items: stretch;

    gap: 0.75rem;

  }

  

  .timeframe-switcher {

    width: 100%;

  }

  

  .time-switch-btn {

    flex: 1;

    text-align: center;

  }

  

  .btn-reset-filters {

    width: 100%;

    justify-content: center;

  }

  

  .filter-group {

    flex-direction: column;

    align-items: flex-start;

    gap: 0.5rem;

  }

  

  .filter-group-label {

    min-width: auto;

  }



  .hero {

    grid-template-columns: 1fr;

    gap: 2rem;

    padding: 2.5rem 1rem;

    text-align: center;

  }

  

  .hero-content h1 {

    font-size: 2.2rem;

  }

  

  .hero-image-container {

    max-width: 280px;

    margin: 0 auto;

  }

  

  /* Onglets Dashboard Mobile (Gérés dans le breakpoint 1100px) */

  

  /* Layout sous forme de blocs compacts pour le statut de la grossesse */

  .status-panel {

    grid-template-columns: 1fr 1fr; /* Progression et taille de bébé côte à côte */

    gap: 1rem;

  }

  

  .status-card {

    padding: 1.25rem 1rem;

  }

  

  .baby-size-card {

    padding: 1.25rem 1rem;

    display: flex;

    flex-direction: column;

    justify-content: center;

  }

  

  .user-settings-card {

    grid-column: span 2; /* Prend les 2 colonnes en dessous */

    margin-top: 0 !important;

    padding: 1rem !important;

  }

  

  .progress-circle-container {

    width: 100px;

    height: 100px;

    margin-bottom: 1rem;

  }

  

  .progress-text {

    font-size: 1.1rem;

  }

  

  .stat-val {

    font-size: 1.4rem;

  }

  

  .stat-label {

    font-size: 0.75rem;

    letter-spacing: 0.5px;

  }

  

  .baby-size-icon {

    font-size: 1.8rem;

  }

  

  .baby-size-title {

    font-size: 0.9rem;

  }

  

  .baby-size-desc {

    font-size: 0.8rem;

    line-height: 1.4;

  }



  /* Cartes d'événements sous forme de blocs verticaux très lisibles */

  .event-card {

    grid-template-columns: 1fr;

  }

  

  .event-time-badge {

    border-right: none;

    border-bottom: 1px solid var(--border-color);

    flex-direction: row;

    justify-content: space-between;

    align-items: center;

    padding: 0.75rem 1.25rem;

    background: linear-gradient(to right, var(--bg-cream), #FFFFFF);

  }

  

  .badge-sa {

    font-size: 1.05rem;

  }

  

  .badge-sg {

    margin-bottom: 0;

    font-size: 0.8rem;

  }

  

  .badge-date {

    font-size: 0.85rem;

  }



  .event-content {

    padding: 1.25rem;

  }

  

  .event-title {

    font-size: 1.15rem;

  }



  .event-header {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.5rem;

  }



  .event-desc {

    font-size: 0.9rem;

    line-height: 1.5;

    margin-bottom: 1rem;

  }



  /* Header compact sur une seule ligne (logo à gauche, actions à droite) */

  header {

    flex-direction: row !important;

    justify-content: space-between !important;

    padding: 1rem;

    gap: 0.5rem;

  }



  .logo-img {

    width: 35px;

    height: 35px;

  }



  .logo-text {

    font-size: 1.3rem;

  }



  .btn-settings {

    padding: 0.5rem 0.75rem;

    font-size: 0.8rem;

  }



  .timeline-header {

    flex-direction: column;

    align-items: stretch;

    padding: 1rem;

    gap: 1rem;

    text-align: center;

  }



  .timeline-header h2 {

    font-size: 1.5rem;

  }



  .btn-export-all {

    width: 100%;

    justify-content: center;

    padding: 0.75rem;

  }

}



@media (max-width: 576px) {

  /* Masquer le texte des boutons d'en-tête sur les petits écrans mobiles */

  .btn-settings span {

    display: none;

  }

  

  .btn-settings svg {

    margin-right: 0;

  }

  

  .header-actions {

    gap: 0.5rem;

  }

  

  .user-welcome {

    font-size: 0.8rem !important;

  }



  /* Formulaire de saisie principal */

  .hero-form-card {

    padding: 1.5rem 1rem;

  }



  .calc-method-toggle {

    flex-direction: column;

    gap: 0.25rem;

    background: transparent;

    border: none;

    padding: 0;

  }



  .method-tab {

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: var(--bg-card);

    padding: 0.75rem;

  }

  

  .method-tab.active {

    border-color: var(--primary-rose);

  }



  .checkbox-group {

    flex-direction: column;

    align-items: flex-start;

    gap: 0.75rem;

  }



  /* Optimisation des Modales */

  .modal-card {

    width: 95% !important;

    max-height: 90vh !important;

    margin: 1.5rem auto !important;

    border-radius: var(--radius-md) !important;

  }

  

  .modal-body {

    padding: 1.25rem 1rem !important;

  }

  

  .modal-body form {

    max-height: none !important;

    overflow-y: visible !important;

  }

}



@media (max-width: 480px) {

  /* Empilement des stats sur de très petits téléphones pour préserver la lisibilité */

  .status-panel {

    grid-template-columns: 1fr;

  }

  .user-settings-card {

    grid-column: span 1;

  }

}



/* Styles pour le bandeau Cookies RGPD */

.cookie-banner {

  position: fixed;

  bottom: 20px;

  left: 50%;

  transform: translateX(-50%) translateY(150px);

  width: 90%;

  max-width: 850px;

  background: var(--bg-glass);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  padding: 1.25rem 2rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1.5rem;

  z-index: 999;

  box-shadow: 0 10px 30px rgba(61, 64, 91, 0.12);

  opacity: 0;

  pointer-events: none;

  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, background-color 0.3s;

}



.cookie-banner.show {

  transform: translateX(-50%) translateY(0);

  opacity: 1;

  pointer-events: auto;

}



.cookie-banner-content {

  display: flex;

  align-items: center;

  gap: 1rem;

}



.cookie-banner-icon {

  font-size: 1.6rem;

  flex-shrink: 0;

}



.cookie-banner-text {

  font-size: 0.88rem;

  color: var(--text-dark);

  line-height: 1.5;

  margin: 0;

  text-align: left;

}



.btn-cookie-accept {

  background: linear-gradient(135deg, var(--primary-sage), #6a9c84);

  color: white;

  border: none;

  outline: none;

  padding: 0.65rem 1.3rem;

  border-radius: var(--radius-sm);

  font-family: var(--font-alt);

  font-weight: 600;

  font-size: 0.88rem;

  white-space: nowrap;

  cursor: pointer;

  box-shadow: 0 4px 10px rgba(129, 178, 154, 0.2);

  transition: var(--transition-smooth);

}



.btn-cookie-accept:hover {

  transform: translateY(-1px);

  box-shadow: 0 6px 15px rgba(129, 178, 154, 0.35);

}



/* Styles pour les onglets légaux */

.legal-tab-btn {

  transition: var(--transition-smooth);

}



.legal-tab-btn:hover {

  color: var(--primary-rose) !important;

}



.legal-tab-btn.active {

  color: var(--primary-rose) !important;

  border-bottom-color: var(--primary-rose) !important;

}



@media (max-width: 768px) {

  .cookie-banner {

    flex-direction: column;

    padding: 1.25rem;

    gap: 1rem;

    bottom: 12px;

  }

  

  .cookie-banner-content {

    flex-direction: column;

    text-align: center;

    gap: 0.5rem;

  }

  

  .cookie-banner-text {

    text-align: center;

    font-size: 0.85rem;

  }

  

  .btn-cookie-accept {

    width: 100%;

    text-align: center;

  }

}



/* Grille de formulaires alignés */

.form-row {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1.25rem;

}



@media (max-width: 576px) {

  .form-row {

    grid-template-columns: 1fr;

    gap: 0;

  }

}





/* ==========================================================================

   MAMALIFE FUNCTIONAL EXTENSION STYLES

   ========================================================================== */



/* 1. Dashboard Tools Tab Navigation */

.tool-tab-content {

  display: none;

}

.tool-tab-content.active-content {

  display: block;

}



.dashboard-tools-nav {

  display: flex;

  gap: 0.5rem;

  background: var(--bg-card);

  border: 1px solid var(--border-color);

  padding: 0.5rem;

  border-radius: var(--radius-md);

  margin-bottom: 1.5rem;

  overflow-x: auto;

  white-space: nowrap;

  scrollbar-width: none; /* Firefox */

  box-shadow: var(--shadow-sm);

}

.dashboard-tools-nav::-webkit-scrollbar {

  display: none; /* Chrome/Safari */

}



.tool-tab-btn {

  background: transparent;

  color: var(--text-light);

  padding: 0.65rem 1.2rem;

  border-radius: var(--radius-sm);

  font-family: var(--font-alt);

  font-size: 0.85rem;

  font-weight: 600;

  display: flex;

  align-items: center;

  gap: 0.5rem;

  border: 1px solid transparent;

  transition: var(--transition-smooth);

}

.tool-tab-btn:hover {

  color: var(--text-dark);

  background: var(--bg-cream);

}

.tool-tab-btn.active {

  background: linear-gradient(135deg, var(--primary-rose), var(--primary-terracotta));

  color: white;

  box-shadow: 0 4px 10px rgba(224, 122, 95, 0.15);

}



/* 2. Timeline Checkbox Checklist */

.event-card.completed {

  opacity: 0.55;

  border-color: var(--border-color) !important;

}

.event-card.completed:hover {

  transform: none;

  box-shadow: var(--shadow-sm);

}

.event-card.completed .event-title,

.event-card.completed .event-desc {

  text-decoration: line-through;

  color: var(--text-light);

}



.event-checkbox-container {

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 22px;

  height: 22px;

  cursor: pointer;

  user-select: none;

  flex-shrink: 0;

}

.event-checkbox-container input {

  position: absolute;

  opacity: 0;

  cursor: pointer;

  height: 0;

  width: 0;

}

.event-checkmark {

  position: absolute;

  top: 0;

  left: 0;

  height: 22px;

  width: 22px;

  background-color: var(--bg-cream);

  border: 2px solid var(--border-color);

  border-radius: 50%;

  transition: var(--transition-smooth);

}

.event-checkbox-container:hover input ~ .event-checkmark {

  border-color: var(--primary-rose);

}

.event-checkbox-container input:checked ~ .event-checkmark {

  background-color: var(--primary-sage);

  border-color: var(--primary-sage);

}

.event-checkmark:after {

  content: "";

  position: absolute;

  display: none;

}

.event-checkbox-container input:checked ~ .event-checkmark:after {

  display: block;

}

.event-checkbox-container .event-checkmark:after {

  left: 7px;

  top: 3px;

  width: 4px;

  height: 9px;

  border: solid white;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);

}



/* Category Tag fallback for perso */

.tag-perso {

  background-color: rgba(244, 211, 94, 0.15);

  color: #b58d10;

}



/* 3. Weight Tracker Layout */

.weight-dashboard-grid {

  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: 1.5rem;

}

@media (max-width: 992px) {

  .weight-dashboard-grid {

    grid-template-columns: 1fr;

  }

}

.weight-history-row:hover {

  background-color: var(--bg-cream);

}

.btn-delete-weight {

  background: transparent;

  color: var(--primary-rose);

  border: none;

  font-size: 0.8rem;

  text-decoration: underline;

  cursor: pointer;

}

.btn-delete-weight:hover {

  color: #E63946;

}



/* 4. Kick Counter Tactile Widget */

.kicks-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1.5rem;

}

@media (max-width: 768px) {

  .kicks-grid {

    grid-template-columns: 1fr;

  }

}

.kick-giant-button {

  width: 160px;

  height: 160px;

  border-radius: 50%;

  background: linear-gradient(135deg, #FFEBE7 0%, #FFD3CB 100%);

  border: 6px solid #FFF;

  box-shadow: 

    0 10px 20px rgba(224, 122, 95, 0.15),

    inset 0 -8px 12px rgba(224, 122, 95, 0.1),

    inset 0 8px 12px rgba(255, 255, 255, 0.8);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  position: relative;

  cursor: pointer;

  transition: var(--transition-smooth);

  outline: none;

}

.kick-giant-button:not(:disabled):hover {

  transform: scale(1.04);

  box-shadow: 

    0 12px 25px rgba(224, 122, 95, 0.25),

    inset 0 -8px 12px rgba(224, 122, 95, 0.1),

    inset 0 8px 12px rgba(255, 255, 255, 0.8);

}

.kick-giant-button:not(:disabled):active {

  transform: scale(0.96);

  box-shadow: 

    0 4px 8px rgba(224, 122, 95, 0.15),

    inset 0 4px 8px rgba(224, 122, 95, 0.2);

}

.kick-giant-button:disabled {

  background: #F0EAE1;

  border-color: #F8F5F0;

  cursor: not-allowed;

  box-shadow: none;

  opacity: 0.7;

}

.kick-icon {

  font-size: 2.5rem;

  margin-bottom: 0.2rem;

  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));

}

.kick-label {

  font-family: var(--font-alt);

  font-size: 0.75rem;

  font-weight: 700;

  color: var(--text-dark);

  text-transform: uppercase;

  letter-spacing: 0.5px;

}

.kick-counter-badge {

  position: absolute;

  top: -5px;

  right: -5px;

  background: var(--primary-rose);

  color: white;

  width: 38px;

  height: 38px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: var(--font-alt);

  font-size: 1.1rem;

  font-weight: 700;

  border: 3px solid white;

  box-shadow: 0 4px 8px rgba(224, 122, 95, 0.3);

}



.kick-history-item {

  background: var(--bg-cream);

  border: 1px solid var(--border-color);

  padding: 0.75rem 1rem;

  border-radius: var(--radius-sm);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



/* 5. Contractions Timer & Alert Banner */

.contractions-grid {

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 1.5rem;

}

@media (max-width: 768px) {

  .contractions-grid {

    grid-template-columns: 1fr;

  }

}



.contraction-action-btn {

  width: 200px;

  height: 200px;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--primary-rose) 0%, var(--primary-terracotta) 100%);

  color: white;

  font-family: var(--font-alt);

  font-weight: 700;

  font-size: 1rem;

  display: flex;

  align-items: center;

  justify-content: center;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  box-shadow: 0 10px 25px rgba(224, 122, 95, 0.3);

  cursor: pointer;

  transition: var(--transition-smooth);

  border: 8px solid white;

  text-align: center;

  padding: 1.5rem;

  line-height: 1.3;

}

.contraction-action-btn:hover {

  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(224, 122, 95, 0.4);

}

.contraction-action-btn:active {

  transform: scale(0.97);

}

.contraction-action-btn.active {

  background: linear-gradient(135deg, #E63946 0%, var(--primary-rose) 100%);

  animation: pulse-red-btn 1.5s infinite ease-in-out;

  box-shadow: 0 0 0 10px rgba(230, 57, 70, 0.2);

}

@keyframes pulse-red-btn {

  0% { transform: scale(1); }

  50% { transform: scale(1.04); }

  100% { transform: scale(1); }

}



.maternity-alert-banner {

  background-color: #FFF0F0;

  border-left: 4px solid #D90429;

  border-radius: var(--radius-sm);

  padding: 1.25rem 1.5rem;

  display: flex;

  align-items: flex-start;

  box-shadow: var(--shadow-sm);

  animation: pulse-border-alert 2s infinite;

}

@keyframes pulse-border-alert {
  0%, 100% {
    border-left-color: #D90429;
    background-color: #FFF0F0;
    box-shadow: var(--shadow-sm);
  }
  50% {
    border-left-color: #FF2E5B;
    background-color: #FFE1E1;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.25);
  }
}



/* 6. Birth Plan Certificate Layout */

.birthplan-grid {

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 1.5rem;

}

@media (max-width: 992px) {

  .birthplan-grid {

    grid-template-columns: 1fr;

  }

}



.birthplan-certificate {

  background: #FFFBF7;

  border: 4px double var(--primary-terracotta);

  border-radius: 12px;

  padding: 2.5rem 2rem;

  box-shadow: var(--shadow-md);

  text-align: left;

  position: relative;

}

.birthplan-certificate::after {

  content: "✨";

  position: absolute;

  bottom: 15px;

  right: 15px;

  font-size: 1.2rem;

  opacity: 0.7;

}

.cert-header {

  text-align: center;

  border-bottom: 2px solid var(--border-color);

  padding-bottom: 1rem;

  margin-bottom: 1.25rem;

}

.cert-logo {

  font-family: var(--font-alt);

  font-size: 1.05rem;

  font-weight: 700;

  color: var(--primary-rose);

  letter-spacing: 1px;

}

.cert-title {

  color: var(--text-dark);

  margin-top: 0.35rem;

  font-size: 1.6rem;

}

.cert-subtitle {

  font-family: var(--font-alt);

  color: var(--text-light);

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  margin-top: 0.25rem;

}

.cert-meta {

  display: flex;

  justify-content: space-between;

  margin-bottom: 1.25rem;

  font-family: var(--font-alt);

  font-size: 0.8rem;

  border-bottom: 1px solid var(--border-color);

  padding-bottom: 0.5rem;

}

.cert-section {

  margin-bottom: 1.25rem;

}

.cert-sec-title {

  font-family: var(--font-alt);

  font-size: 0.85rem;

  font-weight: 700;

  color: var(--primary-rose);

  text-transform: uppercase;

  letter-spacing: 0.5px;

  margin-bottom: 0.5rem;

  border-bottom: 1px dashed var(--border-color);

  padding-bottom: 0.2rem;

}

.cert-list {

  list-style-type: none;

  padding-left: 0;

}

.cert-list li {

  font-size: 0.88rem;

  color: var(--text-dark);

  position: relative;

  padding-left: 1.2rem;

  margin-bottom: 0.3rem;

  line-height: 1.4;

}

.cert-list li::before {

  content: "•";

  color: var(--primary-sage);

  font-size: 1.2rem;

  position: absolute;

  left: 0;

  top: -2px;

}

.cert-footer {

  text-align: center;

  border-top: 1px solid var(--border-color);

  padding-top: 1rem;

  margin-top: 1.5rem;

  font-family: var(--font-serif);

  font-style: italic;

  color: var(--text-light);

}



/* --- PROFILE DROPDOWN MENU --- */

.profile-dropdown-container {

  position: relative;

  display: inline-block;

}



.btn-profile-dropdown {

  background: var(--bg-card);

  color: var(--text-dark);

  border: 1px solid var(--border-color);

  padding: 0.6rem 1.25rem;

  border-radius: var(--radius-sm);

  display: flex;

  align-items: center;

  gap: 0.6rem;

  font-family: var(--font-alt);

  font-weight: 600;

  font-size: 0.88rem;

  box-shadow: var(--shadow-sm);

  transition: var(--transition-smooth);

}



.btn-profile-dropdown:hover, 

.btn-profile-dropdown[aria-expanded="true"] {

  border-color: var(--primary-rose);

  background-color: var(--bg-cream);

  color: var(--primary-rose);

}



.btn-profile-dropdown svg {

  transition: transform 0.3s ease;

}



.btn-profile-dropdown[aria-expanded="true"] svg {

  transform: rotate(180deg);

}



.profile-dropdown-menu {

  display: none;

  position: absolute;

  right: 0;

  top: calc(100% + 8px);

  background: var(--bg-card);

  backdrop-filter: blur(15px);

  -webkit-backdrop-filter: blur(15px);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-lg);

  width: 260px;

  max-height: 400px;

  max-height: 70vh;

  overflow-y: auto;

  -webkit-overflow-scrolling: touch;

  padding: 0.75rem 0;

  z-index: 1000;

  transform-origin: top right;

  animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}



.profile-dropdown-menu.active {

  display: block;

}



@keyframes dropdownFadeIn {

  from {

    opacity: 0;

    transform: scale(0.95) translateY(-5px);

  }

  to {

    opacity: 1;

    transform: scale(1) translateY(0);

  }

}



.dropdown-item {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.7rem 1.25rem;

  color: var(--text-dark);

  font-family: var(--font-sans);

  font-size: 0.9rem;

  font-weight: 500;

  transition: var(--transition-smooth);

}



.dropdown-item svg {

  color: var(--text-light);

  transition: var(--transition-smooth);

}



.dropdown-item:hover {

  background: rgba(224, 122, 95, 0.08);

  color: var(--primary-rose);

}



.dropdown-item:hover svg {

  color: var(--primary-rose);

}



.dropdown-item.admin-item:hover {

  background: rgba(155, 93, 229, 0.08);

  color: var(--accent-purple);

}



.dropdown-item.admin-item:hover svg {

  color: var(--accent-purple);

}



.dropdown-item.logout-item:hover {

  background: rgba(230, 57, 70, 0.08);

  color: #E63946;

}



.dropdown-item.logout-item:hover svg {

  color: #E63946;

}



.dropdown-divider {

  height: 1px;

  background-color: var(--border-color);

  margin: 0.5rem 0;

}



.dropdown-section-title {

  font-family: var(--font-alt);

  font-size: 0.75rem;

  font-weight: 700;

  text-transform: uppercase;

  color: var(--text-light);

  padding: 0.35rem 1.25rem;

  letter-spacing: 0.5px;

}



/* --- TOOLS MODAL STYLING --- */

.tools-modal-card {

  border-radius: var(--radius-lg);

  overflow: hidden;

  display: flex;

  flex-direction: column;

}



.tools-modal-tabs {

  display: flex;

  gap: 0.5rem;

  width: 100%;

  border-bottom: 1px solid var(--border-color);

}



.tools-tab-btn {

  background: transparent;

  border: none;

  font-family: var(--font-alt);

  font-weight: 600;

  font-size: 0.85rem;

  color: var(--text-light);

  padding: 0.6rem 1rem;

  cursor: pointer;

  border-bottom: 2px solid transparent;

  transition: var(--transition-smooth);

  white-space: nowrap;

}



.tools-tab-btn:hover {

  color: var(--primary-rose);

}



.tools-tab-btn.active {

  color: var(--primary-rose);

  border-bottom: 2px solid var(--primary-rose);

}



#tools-modal .tool-tab-content {

  display: none;

}



#tools-modal .tool-tab-content.active-content {

  display: block;

}



#tools-modal .hero-form-card {

  box-shadow: none;

  border: 1px solid var(--border-color);

  background: var(--bg-cream);

}



/* Version compacte de la boîte latérale Mes Outils */

.user-settings-card {

  padding: 0.75rem 1rem !important;

  gap: 0.4rem !important;

}



.user-settings-card h4 {

  font-size: 0.78rem !important;

  margin-bottom: 0.1rem !important;

}



.user-settings-card .btn-settings {

  padding: 0.45rem 0.6rem !important;

  font-size: 0.78rem !important;

}



.user-settings-card label {

  font-size: 0.65rem !important;

  margin-bottom: 0.2rem !important;

}



.user-settings-card select {

  padding: 0.35rem !important;

  font-size: 0.75rem !important;

}



/* 7. Print Layout CSS Rules */

@media print {

  /* ===== GLOBAL PRINT RESETS ===== */

  *,

  *::before,

  *::after {

    -webkit-print-color-adjust: exact !important;

    print-color-adjust: exact !important;

    color-adjust: exact !important;

  }



  body, html {

    background: #FFFFFF !important;

    color: var(--text-dark) !important;

    font-size: 10.5pt !important;

    background-image: none !important;

    margin: 0 !important;

    padding: 0 !important;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;

  }



  /* ===== MASQUER LES ÉLÉMENTS INTERACTIFS ===== */

  header,

  footer,

  .dashboard-mobile-tabs,

  .status-panel,

  .dashboard-tools-nav,

  .no-print,

  .btn-settings,

  .modal-overlay,

  .cookie-banner,

  .recommendations-panel,

  .chatbot-container,

  .agenda-filters-container,

  .filter-group,

  .export-group,

  .contraction-action-btn,

  #btn-contraction-toggle,

  #btn-clear-contractions,

  .btn-event-action,

  .btn-generate,

  .btn-ad,

  .ad-card,

  .profile-dropdown-container {

    display: none !important;

  }



  /* ===== LAYOUT PRINCIPAL ===== */

  main {

    padding: 0 !important;

    margin: 0 !important;

  }



  .dashboard {

    display: block !important;

    padding: 0 !important;

    margin: 0 !important;

    width: 100% !important;

    max-width: 100% !important;

  }



  .dashboard-grid {

    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

  }



  .timeline-panel {

    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

  }



  /* ===== EN-TÊTE D'IMPRESSION ===== */

  .timeline-header {

    margin-bottom: 0.75cm !important;

    padding-bottom: 0.4cm !important;

    border-bottom: 2px solid #D4A373 !important;

  }



  .timeline-header h2 {

    font-family: 'Playfair Display', Georgia, serif !important;

    font-size: 18pt !important;

    color: #3D405B !important;

  }



  .timeline-header p {

    font-size: 9pt !important;

    color: #7D809A !important;

  }



  /* ===== LISTE DES ÉVÉNEMENTS ===== */

  .event-list {

    display: flex !important;

    flex-direction: column !important;

    gap: 0.6cm !important;

  }



  .event-card {

    background: #FFFFFF !important;

    border-radius: 10px !important;

    border: 1.5px solid #F0EAE1 !important;

    box-shadow: none !important;

    display: grid !important;

    grid-template-columns: 110px 1fr !important;

    overflow: hidden !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

  }



  .event-card:hover {

    transform: none !important;

    box-shadow: none !important;

  }



  .event-card.completed {

    opacity: 0.7 !important;

  }



  /* Time badge */

  .event-time-badge {

    background: #FDFBF7 !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0.8rem !important;

    border-right: 1.5px solid #F0EAE1 !important;

    text-align: center !important;

  }



  .badge-sa {

    font-family: 'Montserrat', sans-serif !important;

    font-weight: 700 !important;

    font-size: 11pt !important;

    color: #E07A5F !important;

  }



  .badge-sg {

    font-size: 7.5pt !important;

    color: #7D809A !important;

    margin-bottom: 0.2rem !important;

  }



  .badge-date {

    font-size: 8.5pt !important;

    font-weight: 600 !important;

    color: #3D405B !important;

  }



  /* Event content */

  .event-content {

    padding: 0.75rem 1rem !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

  }



  .event-header {

    display: flex !important;

    justify-content: space-between !important;

    align-items: flex-start !important;

    margin-bottom: 0.2rem !important;

    gap: 0.5rem !important;

  }



  .event-title {

    font-size: 11pt !important;

    line-height: 1.3 !important;

    color: #3D405B !important;

  }



  .event-desc {

    font-size: 9pt !important;

    color: #7D809A !important;

    margin-bottom: 0.4rem !important;

  }



  .event-footer {

    border-top: 1px solid #F0EAE1 !important;

    padding-top: 0.3rem !important;

  }



  /* Category tags - PRESERVE COLORS */

  .category-tag {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 7pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 0.18rem 0.6rem !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    border: 1px solid transparent !important;
  }
  .tag-ultrasound { background: linear-gradient(135deg, #fce4ec, #f8bbd0) !important; color: #c2185b !important; border-color: #f48fb1 !important; }
  .tag-medical    { background: linear-gradient(135deg, #ede7f6, #d1c4e9) !important; color: #6a1b9a !important; border-color: #b39ddb !important; }
  .tag-wellness   { background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important; color: #2e7d32 !important; border-color: #a5d6a7 !important; }
  .tag-admin      { background: linear-gradient(135deg, #fff3e0, #ffe0b2) !important; color: #e65100 !important; border-color: #ffcc80 !important; }
  .tag-prep       { background: linear-gradient(135deg, #fffde7, #fff9c4) !important; color: #f57f17 !important; border-color: #fff176 !important; }
  .tag-maternity  { background: linear-gradient(135deg, #fce4ec, #ffccbc) !important; color: #ad1457 !important; border-color: #f48fb1 !important; }
  .tag-perso      { background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important; color: #1565c0 !important; border-color: #90caf9 !important; }



  /* Partner indicator */

  .partner-indicator {

    font-size: 8pt !important;

    color: #81B29A !important;

    font-weight: 500 !important;

  }



  /* ===== PROJET DE NAISSANCE (BIRTHPLAN) ===== */

  .birthplan-grid {

    display: block !important;

    margin: 0 !important;

    padding: 0 !important;

  }



  .birthplan-recap-container {

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

  }



  .birthplan-certificate {

    box-shadow: none !important;

    border: 3px double #D4A373 !important;

    background: #FFFBF7 !important;

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    padding: 1.5cm !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

    border-radius: 12px !important;

  }



  .birthplan-certificate::after {

    content: "✨" !important;

    position: absolute !important;

    bottom: 15px !important;

    right: 15px !important;

    font-size: 1.2rem !important;

  }



  .cert-header {

    text-align: center !important;

    border-bottom: 2px solid #F0EAE1 !important;

    padding-bottom: 0.8cm !important;

    margin-bottom: 0.6cm !important;

  }



  .cert-logo {

    font-family: 'Montserrat', sans-serif !important;

    font-size: 10pt !important;

    font-weight: 700 !important;

    color: #E07A5F !important;

    letter-spacing: 1px !important;

  }



  .cert-title {

    color: #3D405B !important;

    margin-top: 0.25cm !important;

    font-size: 16pt !important;

    font-family: 'Playfair Display', Georgia, serif !important;

  }



  .cert-subtitle {

    font-family: 'Montserrat', sans-serif !important;

    color: #7D809A !important;

    font-size: 7.5pt !important;

    text-transform: uppercase !important;

    letter-spacing: 1px !important;

  }



  .cert-meta {

    display: flex !important;

    justify-content: space-between !important;

    margin-bottom: 0.5cm !important;

    font-family: 'Montserrat', sans-serif !important;

    font-size: 8pt !important;

    border-bottom: 1px solid #F0EAE1 !important;

    padding-bottom: 0.25cm !important;

    color: #7D809A !important;

  }



  .cert-meta strong {

    color: #3D405B !important;

  }



  .cert-section {

    margin-bottom: 0.5cm !important;

  }



  .cert-sec-title {

    font-family: 'Montserrat', sans-serif !important;

    font-size: 9pt !important;

    font-weight: 700 !important;

    color: #E07A5F !important;

    text-transform: uppercase !important;

    letter-spacing: 0.5px !important;

    margin-bottom: 0.2cm !important;

    border-bottom: 1px dashed #F0EAE1 !important;

    padding-bottom: 0.1cm !important;

  }



  .cert-list {

    list-style-type: none !important;

    padding-left: 0 !important;

  }



  .cert-list li {

    font-size: 9pt !important;

    color: #3D405B !important;

    position: relative !important;

    padding-left: 0.8cm !important;

    margin-bottom: 0.15cm !important;

    line-height: 1.4 !important;

  }



  .cert-list li::before {

    content: "•" !important;

    color: #81B29A !important;

    font-size: 12pt !important;

    position: absolute !important;

    left: 0 !important;

    top: -1px !important;

  }



  .cert-footer {

    text-align: center !important;

    border-top: 1px solid #F0EAE1 !important;

    padding-top: 0.4cm !important;

    margin-top: 0.5cm !important;

    font-family: 'Playfair Display', Georgia, serif !important;

    font-style: italic !important;

    color: #7D809A !important;

    font-size: 8pt !important;

  }



  /* ===== CONTRACTIONS - HISTORIQUE ===== */

  .contractions-grid {

    display: block !important;

  }



  .contractions-grid .status-card {

    background: #FFFFFF !important;

    border: 1.5px solid #F0EAE1 !important;

    border-radius: 10px !important;

    box-shadow: none !important;

    padding: 0.5cm !important;

    margin-bottom: 0.5cm !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

  }



  #contraction-timer {

    font-family: 'Montserrat', sans-serif !important;

    font-size: 24pt !important;

    font-weight: 700 !important;

    color: #3D405B !important;

  }



  #contraction-status {

    font-size: 8pt !important;

    color: #7D809A !important;

    text-transform: uppercase !important;

  }



  /* ===== TABLEAUX (Contractions, Kicks, Weight) ===== */

  table {

    width: 100% !important;

    border-collapse: collapse !important;

    font-size: 9pt !important;

  }



  thead tr {

    border-bottom: 2px solid #D4A373 !important;

    color: #7D809A !important;

  }



  thead th {

    padding: 0.3cm 0.2cm !important;

    font-family: 'Montserrat', sans-serif !important;

    font-weight: 600 !important;

    font-size: 8pt !important;

    text-transform: uppercase !important;

    letter-spacing: 0.3px !important;

    color: #7D809A !important;

  }



  tbody tr {

    border-bottom: 1px solid #F0EAE1 !important;

  }



  tbody td {

    padding: 0.2cm 0.2cm !important;

    color: #3D405B !important;

    font-size: 9pt !important;

  }



  tbody tr:nth-child(even) {

    background: #FDFBF7 !important;

  }



  /* ===== STATUS CARDS (common) ===== */

  .status-card {

    background: #FFFFFF !important;

    border: 1.5px solid #F0EAE1 !important;

    border-radius: 10px !important;

    box-shadow: none !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

  }



  .status-card h3 {

    font-family: 'Playfair Display', Georgia, serif !important;

    font-size: 12pt !important;

    color: #3D405B !important;

  }



  /* ===== ALERTES ===== */

  .maternity-alert-banner {

    background: #F8D7DA !important;

    border: 1.5px solid #F5C6CB !important;

    border-radius: 8px !important;

    padding: 0.4cm !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

  }



  .maternity-alert-banner h4 {

    color: #721C24 !important;

  }



  .maternity-alert-banner p {

    color: #721C24 !important;

  }



  /* ===== BABY SIZE CARD ===== */

  .baby-size-card {

    background: #FFFFFF !important;

    border: 1.5px solid #F0EAE1 !important;

    border-radius: 10px !important;

    box-shadow: none !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

  }



  .baby-size-icon {

    font-size: 2rem !important;

  }



  .baby-size-title {

    font-family: 'Playfair Display', Georgia, serif !important;

    color: #3D405B !important;

  }



  .baby-size-desc {

    color: #7D809A !important;

    font-size: 9pt !important;

  }



  /* ===== KICKS / MOUVEMENTS ===== */

  .kicks-grid {

    display: block !important;

  }



  .kicks-grid .status-card {

    margin-bottom: 0.5cm !important;

  }



  /* ===== WEIGHT / POIDS ===== */

  .weight-grid {

    display: block !important;

  }



  .weight-grid .status-card {

    margin-bottom: 0.5cm !important;

  }



  /* ===== CANVAS (Charts) ===== */

  canvas {

    max-width: 100% !important;

    height: auto !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

  }



  /* ===== PAGINATION ===== */

  h2, h3, h4 {

    page-break-after: avoid !important;

    break-after: avoid !important;

  }



  /* ===== LIENS (Afficher URL en print) ===== */

  a[href]::after {

    content: none !important;

  }

}



/* ================= MON COATCH — CHATBOT BIENVEILLANT ================= */

.chatbot-container {

  position: fixed;

  bottom: 25px;

  right: 25px;

  z-index: 9999;

  font-family: var(--font-sans);

}



.chatbot-bubble {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  background: linear-gradient(135deg, var(--primary-rose), var(--primary-terracotta));

  color: #FFFFFF;

  border: none;

  padding: 0.8rem 1.4rem;

  border-radius: 50px;

  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);

  cursor: pointer;

  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  font-weight: 600;

  font-family: var(--font-alt);

  font-size: 0.9rem;

}



.chatbot-bubble:hover {

  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 10px 28px rgba(224, 122, 95, 0.4);

}



.chatbot-bubble-icon {

  font-size: 1.2rem;

  display: inline-block;

  animation: float-emoji 3s ease-in-out infinite;

}



@keyframes float-emoji {

  0%, 100% { transform: translateY(0); }

  50% { transform: translateY(-3px); }

}



.chatbot-panel {

  position: absolute;

  bottom: 70px;

  right: 0;

  width: 360px;

  max-width: calc(100vw - 50px);

  height: 480px;

  max-height: calc(100vh - 120px);

  background: var(--bg-card);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-color);

  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  animation: chatbot-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}



@keyframes chatbot-slide-in {

  from {

    opacity: 0;

    transform: translateY(20px) scale(0.95);

  }

  to {

    opacity: 1;

    transform: translateY(0) scale(1);

  }

}



.chatbot-header {

  padding: 1rem 1.25rem;

  background: var(--bg-cream);

  border-bottom: 1px solid var(--border-color);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.chatbot-close {

  background: transparent;

  border: none;

  font-size: 1.5rem;

  color: var(--text-light);

  cursor: pointer;

  padding: 0;

  line-height: 1;

  transition: color 0.2s;

}



.chatbot-close:hover {

  color: var(--primary-rose);

}



.chatbot-messages {

  flex: 1;

  padding: 1.25rem;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 1rem;

  background: var(--bg-card);

}



.chatbot-msg {

  display: flex;

  flex-direction: column;

  max-width: 85%;

  animation: message-appear 0.25s ease-out;

}



@keyframes message-appear {

  from { opacity: 0; transform: translateY(5px); }

  to { opacity: 1; transform: translateY(0); }

}



.chatbot-msg.assistant {

  align-self: flex-start;

}



.chatbot-msg.user {

  align-self: flex-end;

}



.chatbot-msg-bubble {

  padding: 0.75rem 1rem;

  border-radius: 14px;

  font-size: 0.88rem;

  line-height: 1.4;

}



.chatbot-msg.assistant .chatbot-msg-bubble {

  background: var(--bg-cream);

  color: var(--text-dark);

  border-top-left-radius: 4px;

  border: 1px solid var(--border-color);

  text-align: left;

}



.chatbot-msg.user .chatbot-msg-bubble {

  background: linear-gradient(135deg, var(--primary-rose), var(--primary-terracotta));

  color: #FFFFFF;

  border-top-right-radius: 4px;

  text-align: left;

}



.chatbot-msg-time {

  font-size: 0.7rem;

  color: var(--text-light);

  margin-top: 0.25rem;

  align-self: flex-end;

}



.chatbot-msg.assistant .chatbot-msg-time {

  align-self: flex-start;

  margin-left: 0.2rem;

}



.chatbot-input-area {

  padding: 0.75rem 1rem;

  border-top: 1px solid var(--border-color);

  display: flex;

  gap: 0.5rem;

  background: var(--bg-cream);

  align-items: center;

}



.chatbot-input {

  flex: 1;

  border: 1px solid var(--border-color);

  border-radius: 20px;

  padding: 0.5rem 1rem;

  font-size: 0.85rem;

  outline: none;

  background: #FFFFFF;

  font-family: var(--font-sans);

  transition: border-color 0.2s;

}



.chatbot-input:focus {

  border-color: var(--primary-rose);

}



.chatbot-send-btn {

  background: var(--primary-rose);

  color: #FFFFFF;

  border: none;

  width: 32px;

  height: 32px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: background 0.2s, transform 0.2s;

  flex-shrink: 0;

  padding: 0;

}



.chatbot-send-btn:hover {

  background: var(--primary-terracotta);

  transform: scale(1.05);

}



/* Style de chargement */

.chatbot-loading {

  display: flex;

  gap: 4px;

  padding: 0.35rem 0.5rem;

  align-items: center;

  justify-content: center;

}



.chatbot-loading span {

  width: 6px;

  height: 6px;

  background-color: var(--text-light);

  border-radius: 50%;

  display: inline-block;

  animation: chatbot-blink 1.4s infinite both;

}



.chatbot-loading span:nth-child(2) { animation-delay: .2s; }

.chatbot-loading span:nth-child(3) { animation-delay: .4s; }



@keyframes chatbot-blink {

  0% { opacity: .2; }

  20% { opacity: 1; }

  100% { opacity: .2; }

}



/* Style pour l'affichage de l'avertissement de santé */

.chatbot-msg-bubble p em,

.chatbot-msg-bubble em {

  font-size: 0.8rem;

  display: block;

  margin-top: 0.5rem;

  border-top: 1px solid rgba(0, 0, 0, 0.05);

  padding-top: 0.5rem;

  color: var(--text-light);

}



.chatbot-msg.user .chatbot-msg-bubble em {

  color: rgba(255, 255, 255, 0.85);

  border-top: 1px solid rgba(255, 255, 255, 0.15);

}



/* Icône de Conseil Coatch Timeline */

.ai-stars-icon {

  animation: spin-stars 4s linear infinite;

  display: inline-block;

}



@keyframes spin-stars {

  0% { transform: rotate(0deg); }

  100% { transform: rotate(360deg); }

}



/* ================= Outils Cozy Tile Grid ================= */

.cozy-tools-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));

  gap: 0.5rem;

  margin-bottom: 0.25rem;

}



.cozy-tool-tile {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  aspect-ratio: 1 / 1;

  padding: 0.5rem 0.25rem;

  background: #FFFBF7;

  border: 1px solid var(--border-color);

  border-radius: 14px;

  text-decoration: none;

  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);

  text-align: center;

  position: relative;

  overflow: hidden;

  box-shadow: 0 4px 6px rgba(110, 80, 65, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);

}



.cozy-tool-tile:hover {

  background: var(--bg-card);

  transform: translateY(-2px);

  border-color: var(--primary-rose);

  box-shadow: 0 7px 14px rgba(110, 80, 65, 0.15), 0 3px 6px rgba(0, 0, 0, 0.08);

}



.cozy-tool-tile:active {

  transform: translateY(1px);

  box-shadow: 0 2px 4px rgba(110, 80, 65, 0.08);

}



.cozy-tool-tile.active {

  background: rgba(224, 122, 95, 0.06);

  border-color: var(--primary-rose);

  color: var(--primary-rose);

  font-weight: 600;

}



.cozy-tool-icon {

  font-size: 1.45rem;

  margin-bottom: 0.2rem;

  display: flex;

  align-items: center;

  justify-content: center;

  filter: drop-shadow(0 2px 3px rgba(110, 80, 65, 0.25));

}



.cozy-tool-label {

  font-size: 0.68rem;

  color: var(--text-dark);

  font-family: var(--font-sans);

  font-weight: 500;

}



.cozy-tool-tile.active .cozy-tool-label {

  color: var(--primary-rose);

  font-weight: 600;

}



/* Overlay marron translucide pour les outils Premium verrouillés */

.tool-locked-overlay {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background-color: rgba(90, 70, 60, 0.68);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 3;

}



.tool-locked-overlay span {

  color: #FFFFFF;

  font-family: var(--font-alt), var(--font-sans);

  font-size: 0.6rem;

  font-weight: 900;

  letter-spacing: 0.8px;

  transform: rotate(-15deg);

  border: 1.5px solid #FFFFFF;

  padding: 0.1rem 0.3rem;

  border-radius: 3px;

  text-shadow: 0 1px 2px rgba(0,0,0,0.3);

  box-shadow: 0 2px 4px rgba(0,0,0,0.2);

  white-space: nowrap;

}



@media (max-width: 768px) {

  .cozy-tools-grid {

    grid-template-columns: repeat(3, 1fr);

    gap: 0.5rem;

  }

}



/* ================= Mobile Optimizations & Stacking ================= */

@media (max-width: 992px) {

  .kicks-grid {

    grid-template-columns: 1fr !important;

  }

  .contractions-grid {

    grid-template-columns: 1fr !important;

  }

  .birthplan-grid {

    grid-template-columns: 1fr !important;

  }

}



/* Masquer l'assistant virtuel (bulle et panel flottant) sur mobile et écrans tactiles */

@media (max-width: 1024px), (pointer: coarse) {

  .chatbot-container {

    display: none !important;

  }

}



/* ===== RESPONSIVE UTILITIES FOR AGENDA BUTTON & COATCH LINK ===== */

@media (min-width: 1025px) {

  .mobile-only-dropdown-item {

    display: none !important;

  }

}



@media (max-width: 1024px) {

  .pc-only-agenda-btn {

    display: none !important;

  }

}



/* ================= BANNIERE INSTALLATION PWA ================= */

.pwa-install-banner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: linear-gradient(135deg, rgba(224, 122, 95, 0.06) 0%, rgba(244, 241, 234, 0.7) 100%);

  border: 1px dashed var(--primary-rose);

  border-radius: var(--radius-md);

  padding: 0.85rem 1.15rem;

  margin-bottom: 1.5rem;

  box-shadow: var(--shadow-sm);

  animation: pwa-slide-down 0.4s ease-out;

  text-align: left;

}



@keyframes pwa-slide-down {

  from { opacity: 0; transform: translateY(-10px); }

  to { opacity: 1; transform: translateY(0); }

}



.pwa-install-content {

  display: flex;

  align-items: center;

  gap: 0.75rem;

}



.pwa-install-icon {

  font-size: 1.5rem;

}



.pwa-install-title {

  margin: 0;

  font-family: var(--font-serif);

  font-size: 0.92rem;

  color: var(--text-dark);

  font-weight: 600;

}



.pwa-install-desc {

  margin: 0.15rem 0 0 0;

  font-size: 0.75rem;

  color: var(--text-light);

  line-height: 1.3;

}



.btn-pwa-install {

  background: linear-gradient(135deg, var(--primary-rose), var(--primary-terracotta));

  color: white;

  border: none;

  padding: 0.45rem 1rem;

  border-radius: 50px;

  font-family: var(--font-alt);

  font-weight: 600;

  font-size: 0.78rem;

  cursor: pointer;

  box-shadow: 0 4px 10px rgba(224, 122, 95, 0.15);

  transition: all 0.2s ease-in-out;

  white-space: nowrap;

  margin-left: 1rem;

}



.btn-pwa-install:hover {

  transform: translateY(-1px);

  box-shadow: 0 6px 14px rgba(224, 122, 95, 0.25);

}



@media (min-width: 1025px) {

  .pwa-install-banner {

    display: none !important;

  }

}



@media (min-width: 1101px) {

  .dashboard {

    max-width: 80% !important;

    padding: 2rem 0 !important;

  }

}











/* ==========================================================================

   MamaLife Innovation Modules Styles

   ========================================================================== */



/* Bannières médicales */

.medical-disclaimer-banner {

  background-color: #fff1f2;

  border: 1px solid #fecdd3;

  color: #9f1239;

  padding: 1.15rem;

  border-radius: var(--radius-md);

  font-size: 0.88rem;

  line-height: 1.5;

  box-shadow: var(--shadow-sm);

}



.medical-disclaimer-banner strong {

  color: #881337;

}



/* Enregistrement vocal */

#btn-record-voice.recording {

  background: var(--primary-rose) !important;

  color: white !important;

  border-color: var(--primary-rose) !important;

  animation: pulse-recording 1.5s infinite;

}



@keyframes pulse-recording {

  0% { opacity: 1; }

  50% { opacity: 0.6; }

  100% { opacity: 1; }

}



/* Lecteur relaxation */

#relaxation-player-container {

  transition: all 0.3s ease;

}



#audio-volume {

  -webkit-appearance: none;

  width: 100%;

}



#audio-volume::-webkit-slider-thumb {

  -webkit-appearance: none;

  width: 14px;

  height: 14px;

  border-radius: 50%;

  background: var(--primary-rose);

  cursor: pointer;

  transition: transform 0.1s ease;

}



#audio-volume::-webkit-slider-thumb:hover {

  transform: scale(1.2);

}



/* Heatmap Kicks */

.kick-heatmap-hour {

  transition: transform 0.2s ease, opacity 0.2s ease;

}



.kick-heatmap-hour:hover {

  transform: scale(1.25);

  z-index: 10;

}



/* Valise tab buttons */

.db-tab-btn {

  background: transparent;

  color: var(--text-light);

  border-bottom: 2px solid transparent;

  border-radius: 0;

  font-family: var(--font-alt);

  font-weight: 600;

  transition: all 0.2s ease;

}



.db-tab-btn.active {

  color: var(--primary-rose);





/* ==========================================================================

   MamaLife Innovation Modules Styles

   ========================================================================== */



/* Bannières médicales */

.medical-disclaimer-banner {

  background-color: #fff1f2;

  border: 1px solid #fecdd3;

  color: #9f1239;

  padding: 1.15rem;

  border-radius: var(--radius-md);

  font-size: 0.88rem;

  line-height: 1.5;

  box-shadow: var(--shadow-sm);

}



.medical-disclaimer-banner strong {

  color: #881337;

}



/* Enregistrement vocal */

#btn-record-voice.recording {

  background: var(--primary-rose) !important;

  color: white !important;

  border-color: var(--primary-rose) !important;

  animation: pulse-recording 1.5s infinite;

}



@keyframes pulse-recording {

  0% { opacity: 1; }

  50% { opacity: 0.6; }

  100% { opacity: 1; }

}



/* Lecteur relaxation */

#relaxation-player-container {

  transition: all 0.3s ease;

}



#audio-volume {

  -webkit-appearance: none;

  width: 100%;

}



#audio-volume::-webkit-slider-thumb {

  -webkit-appearance: none;

  width: 14px;

  height: 14px;

  border-radius: 50%;

  background: var(--primary-rose);

  cursor: pointer;

  transition: transform 0.1s ease;

}



#audio-volume::-webkit-slider-thumb:hover {

  transform: scale(1.2);

}



/* Heatmap Kicks */

.kick-heatmap-hour {

  transition: transform 0.2s ease, opacity 0.2s ease;

}



.kick-heatmap-hour:hover {

  transform: scale(1.25);

  z-index: 10;

}



/* Valise tab buttons */

.db-tab-btn {

  background: transparent;

  color: var(--text-light);

  border-bottom: 2px solid transparent;

  border-radius: 0;

  font-family: var(--font-alt);

  font-weight: 600;

  transition: all 0.2s ease;

}



.db-tab-btn.active {

  color: var(--primary-rose);

  border-bottom: 2px solid var(--primary-rose);

}





/* Menu Deroulant Profil : Optimisation Mobile */

@media (max-width: 1024px) {

  .profile-dropdown-menu {

    max-height: 80vh;

    overflow-y: auto;

    width: 280px;

    -webkit-overflow-scrolling: touch;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    padding-bottom: 0.5rem;

  }

}



/* Grille compacte d'outils dans le dropdown */

.dropdown-tools-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 0.4rem;

  padding: 0.5rem 0.65rem;

}



.dropdown-tool-tile {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 0.15rem;

  padding: 0.5rem 0.15rem 0.35rem;

  border-radius: 10px;

  text-decoration: none;

  transition: all 0.2s ease;

  background: var(--bg-cream, #faf8f4);

  border: 1px solid rgba(0,0,0,0.04);

  min-width: 0;

  aspect-ratio: 1 / 0.9;

}



.dropdown-tool-tile:hover {

  background: rgba(224, 122, 95, 0.1);

  border-color: rgba(224, 122, 95, 0.2);

  transform: translateY(-1px);

  box-shadow: 0 2px 6px rgba(224, 122, 95, 0.1);

}



.dropdown-tool-tile.active {

  background: rgba(224, 122, 95, 0.12);

  border-color: rgba(224, 122, 95, 0.25);

}



.dropdown-tool-tile.active .dropdown-tool-label {

  color: var(--primary-rose);

  font-weight: 700;

}



.dropdown-tool-icon {

  font-size: 1.15rem;

  line-height: 1;

}



.dropdown-tool-label {

  font-family: var(--font-sans);

  font-size: 0.55rem;

  font-weight: 500;

  color: var(--text-dark);

  text-align: center;

  line-height: 1.1;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 100%;

}



.dropdown-section-title {

  font-family: var(--font-alt);

  font-size: 0.68rem;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  color: var(--text-light);

  padding: 0.25rem 1rem 0.1rem;

}



/* --- ACCORDEON OUTILS DROPDOWN --- */

.dropdown-details summary::-webkit-details-marker {

  display: none;

}

.dropdown-details summary {

  list-style: none;

}

.dropdown-details[open] .details-arrow {

  transform: rotate(180deg);

}

.details-arrow {

  display: inline-block;

  transition: transform 0.2s ease;

  font-size: 0.75rem;

  color: var(--text-light);

}

.dropdown-sub-item {

  padding: 0.5rem 1.25rem 0.5rem 2.5rem !important;

  font-size: 0.85rem !important;

  border-radius: 0 !important;

  border-left: 3px solid transparent;

}

.dropdown-sub-item:hover {

  border-left-color: var(--primary-rose) !important;

  background: rgba(224, 122, 95, 0.04) !important;

}

.dropdown-sub-item.active {

  color: var(--primary-rose) !important;

  font-weight: 700 !important;

  border-left-color: var(--primary-rose) !important;

  background: rgba(224, 122, 95, 0.06) !important;

}



/* --- ANIMATION DE GENERATION DES BOUTONS --- */

.generating {

  position: relative !important;

  overflow: hidden !important;

  background-image: linear-gradient(135deg, var(--primary-rose, #E07A5F), var(--primary-sage, #81B29A)) !important;

  background-size: 200% 200% !important;

  animation: generating-gradient 2s infinite ease-in-out, generating-scale 1.5s infinite ease-in-out !important;

  cursor: wait !important;

  pointer-events: none !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  color: #ffffff !important;

}



button.generating:disabled,

button.generating[disabled] {

  opacity: 1 !important;

  color: #ffffff !important;

  background-image: linear-gradient(135deg, var(--primary-rose, #E07A5F), var(--primary-sage, #81B29A)) !important;

}



/* Spinner animé premium compatible avec Firefox */

.generating::before {

  content: "" !important;

  display: inline-block !important;

  width: 16px !important;

  height: 16px !important;

  margin-right: 8px !important;

  border: 2px solid rgba(255, 255, 255, 0.3) !important;

  border-top: 2px solid #ffffff !important;

  border-radius: 50% !important;

  animation: generating-spin 0.8s infinite linear !important;

  flex-shrink: 0 !important;

}



/* Effet Shimmer de secours */

.generating::after {

  content: '';

  position: absolute;

  top: 0;

  left: -150%;

  width: 150%;

  height: 100%;

  background: linear-gradient(

    90deg,

    rgba(255, 255, 255, 0) 0%,

    rgba(255, 255, 255, 0.45) 50%,

    rgba(255, 255, 255, 0) 100%

  );

  animation: generating-shimmer 1.5s infinite linear !important;

  z-index: 2;

}



@keyframes generating-gradient {

  0% {

    background-position: 0% 50%;

  }

  50% {

    background-position: 100% 50%;

  }

  100% {

    background-position: 0% 50%;

  }

}



@keyframes generating-scale {

  0% {

    transform: scale(1);

    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.2);

  }

  50% {

    transform: scale(0.985);

    box-shadow: 0 8px 25px rgba(129, 178, 154, 0.35);

  }

  100% {

    transform: scale(1);

    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.2);

  }

}



@keyframes generating-spin {

  0% {

    transform: rotate(0deg);

  }

  100% {

    transform: rotate(360deg);

  }

}



@keyframes generating-shimmer {

  0% {

    left: -150%;

  }

  50% {

    left: 100%;

  }

  100% {

    left: 100%;

  }

}



/* --- BOUTON AIDE OUTILS DE SUIVI --- */

.help-circle-btn {

  background: var(--border-color);

  border: 1px solid var(--border-color);

  color: var(--text-light);

  border-radius: 50%;

  width: 20px;

  height: 20px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 0.8rem;

  font-weight: bold;

  cursor: pointer;

  transition: all 0.2s ease;

  padding: 0;

  margin-left: 0.25rem;

}



.help-circle-btn:hover {

  background: var(--primary-rose);

  color: var(--bg-card);

  border-color: var(--primary-rose);

  transform: scale(1.1);

}



/* --- MODAL AIDE OUTILS SPECIFIQUE (90% x 90%) --- */

#tools-help-modal {

  display: none; /* Controlled by JS */

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(61, 64, 91, 0.45);

  backdrop-filter: blur(8px);

  z-index: 100000;

  align-items: center;

  justify-content: center;

}



#tools-help-modal .modal-card {

  width: 90% !important;

  height: 90% !important;

  max-width: 1200px !important;

  max-height: 90vh !important;

  border-radius: var(--radius-lg) !important;

  background: var(--bg-cream) !important; /* Cozy cream background */

  border: 1px solid var(--border-color) !important;

  box-shadow: var(--shadow-lg) !important;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  margin: 0 !important;

  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

}



#tools-help-modal .modal-header {

  padding: 1.25rem 2rem;

  background: var(--bg-card);

  border-bottom: 1px solid var(--border-color);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



#tools-help-modal .modal-title {

  font-family: var(--font-serif);

  color: var(--primary-rose);

  font-size: 1.35rem;

  font-weight: 700;

  margin: 0;

}



#tools-help-modal .modal-body {

  flex: 1;

  overflow-y: auto;

  padding: 2rem;

  background-color: var(--bg-cream);

}



.tools-guide-container {

  display: flex;

  flex-direction: column;

  width: 100%;

  height: 100%;

}



.tools-guide-header {

  text-align: center;

  margin-bottom: 2rem;

}



.tools-guide-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

  gap: 1.5rem;

  width: 100%;

  align-content: start;

}



.tool-guide-card {

  background: var(--bg-card);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-color);

  box-shadow: var(--shadow-sm);

  padding: 1.5rem;

  display: flex;

  flex-direction: column;

  gap: 1rem;

  text-align: left;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.tool-guide-card:hover {

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}



/* Spinner rotation */

@keyframes spin {

  0% { transform: rotate(0deg); }

  100% { transform: rotate(360deg); }

}



/* Styles pour la sélection d'humeur */

.mood-btn {

  cursor: pointer;

  padding: 0.4rem 0.8rem;

  background-color: #fff;

  border: 1px solid var(--border-color);

  border-radius: 2rem;

  display: flex;

  align-items: center;

  gap: 0.35rem;

  font-size: 0.88rem;

  transition: all 0.2s;

  user-select: none;

  color: var(--text-dark);

}



.mood-btn:hover {

  background-color: #fff5f7;

  border-color: var(--primary-rose);

  transform: translateY(-1px);

}



.mood-btn.selected,

.mood-btn:has(input:checked) {

  background-color: var(--primary-rose) !important;

  color: #fff !important;

  border-color: var(--primary-rose) !important;

  transform: scale(1.04);

  box-shadow: var(--shadow-sm);

}



/* Cache les éléments destinés uniquement à l'impression sur l'écran */

.print-only {

  display: none !important;

}



/* Modèle Projet de Naissance pour l'impression des recettes */

@media print {

  .print-only {

    display: block !important;

  }

  

  .nutrition-print-card {

    box-shadow: none !important;

    border: 3px double #D4A373 !important;

    background: #FFFBF7 !important;

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    padding: 1.5cm !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

    border-radius: 12px !important;

  }

  

  .nutrition-print-card .cert-header {

    text-align: center !important;

    border-bottom: 2px solid #F0EAE1 !important;

    padding-bottom: 0.8cm !important;

    margin-bottom: 0.6cm !important;

  }

  

  .nutrition-print-card .cert-logo {

    font-family: 'Montserrat', sans-serif !important;

    font-size: 10pt !important;

    font-weight: 700 !important;

    color: #E07A5F !important;

    letter-spacing: 1px !important;

  }

  

  .nutrition-print-card .cert-title {

    color: #3D405B !important;

    margin-top: 0.25cm !important;

    font-size: 16pt !important;

    font-family: 'Playfair Display', Georgia, serif !important;

  }

  

  .nutrition-print-card .cert-subtitle {

    font-family: 'Montserrat', sans-serif !important;

    color: #7D809A !important;

    font-size: 7.5pt !important;

    text-transform: uppercase !important;

    letter-spacing: 1px !important;

  }

  

  .birthlist-print-card {

    box-shadow: none !important;

    border: 3px double #E07A5F !important;

    background: #FFFBF7 !important;

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    padding: 1.5cm !important;

    border-radius: 12px !important;

  }

}



.birthlist-item-row.checked .birthlist-item-name {

  text-decoration: line-through;

  opacity: 0.7;

}



/* --- Freemium Locked Card Styles --- */

.tool-card-locked {

  position: relative;

  cursor: pointer !important;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  overflow: hidden;

}



.tool-card-locked:hover {

  transform: translateY(-2px);

}



.badge-premium {

  background: linear-gradient(135deg, #F2CC8F, #E07A5F);

  color: #fff;

  border: 1px solid #E07A5F;

}



.badge-vip {

  background: linear-gradient(135deg, #8E2DE2, #4A00E0);

  color: #fff;

  border: 1px solid #4A00E0;

}





/* Styles pour la modale partenaire */

.partner-modal-layout {

  display: flex;

  flex-direction: column;

  gap: 1.5rem;

  width: 100%;

  align-items: center;

  box-sizing: border-box;

}



.partner-modal-left {

  display: flex;

  justify-content: center;

  align-items: center;

  width: 100%;

  flex-shrink: 0;

}



.partner-modal-left img {

  max-width: 150px !important;

  max-height: 150px !important;

  object-fit: contain;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  border: 1px solid var(--border-color);

  background: #fff;

  padding: 0.25rem;

  box-sizing: border-box;

}



.partner-modal-right {

  width: 100%;

  box-sizing: border-box;

}



.partner-modal-text-container {

  text-align: left;

  background: var(--bg-card);

  padding: 1.5rem;

  border-radius: var(--radius-md);

  border: 1px solid var(--border-color);

  box-sizing: border-box;

}



.partner-modal-text-container h3 {

  font-family: var(--font-serif);

  font-size: 1.6rem;

  color: var(--text-dark);

  margin: 0 0 0.5rem 0;

  font-weight: 700;

  line-height: 1.2;

}



.partner-modal-text-container h4 {

  font-family: var(--font-sans);

  font-size: 1.1rem;

  font-weight: 600;

  color: var(--primary-rose);

  margin: 0 0 1rem 0;

  line-height: 1.4;

}



#partner-modal-text {

  font-size: 0.95rem;

  color: var(--text-dark);

  line-height: 1.6;

  margin: 0;

}



@media (min-width: 576px) {

  .partner-modal-layout {

    flex-direction: row !important;

    align-items: center !important;

    gap: 2rem !important;

  }

  .partner-modal-left {

    width: 35% !important;

    max-width: 250px !important;

  }

  .partner-modal-left img {

    max-width: 150px !important;

    max-height: 150px !important;

  }

  .partner-modal-right {

    width: 65% !important;

    flex: 1 !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

  }

  

  #partner-offer-modal .modal-footer {

    justify-content: flex-end !important;

  }

  #partner-modal-link {

    width: auto !important;

    min-width: 240px !important;

  }

}



/* =============================================================== */

/* BUG FIX : Scroll du menu "Mes Outils de Suivi" sur mobile PWA  */

/* Solution par Gemma-4 (LM Studio)                                */

/* =============================================================== */



@media screen and (max-width: 768px) {

  .user-settings-card {

    position: relative;

    max-height: 280px;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch; /* Momentum scroll iOS */

    scroll-behavior: smooth;

  }



  /* Gradient indicateur de contenu scrollable */

  .user-settings-card::after {

    content: '';

    position: sticky;

    bottom: 0;

    left: 0;

    right: 0;

    height: 28px;

    display: block;

    background: linear-gradient(to bottom, rgba(255, 251, 247, 0) 0%, rgba(255, 251, 247, 0.95) 100%);

    pointer-events: none;

    z-index: 2;

  }

}



@media screen and (max-width: 480px) {

  .user-settings-card {

    max-height: 260px;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

  }

}



/* =============================================================== */

/* OPTIMISATION : Dimension des Modales / Popups sur PC (Desktop) */

/* =============================================================== */



@media screen and (min-width: 769px) {

  .modal-card {

    width: 650px !important;

    height: auto !important;

    max-height: 85vh !important;

    margin: auto !important;

  }

  

  /* Modal Authentification plus compact */

  #auth-modal .modal-card {

    width: 480px !important;

  }

  

  /* Modal Aide aux outils adapté mais pas trop grand */

  #tools-help-modal .modal-card {

    width: 850px !important;

    height: 80% !important;

    max-height: 85vh !important;

  }

}



/* Bouton régénérer astuce bien-être */

#btn-refresh-wellness {

  position: absolute;

  top: 1.25rem;

  right: 1.25rem;

  width: auto;

  height: auto;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 0.8rem;

  padding: 0.4rem 0.8rem !important;

  border-color: var(--primary-rose) !important;

  color: var(--primary-rose) !important;

  line-height: 1.2;

  cursor: pointer;

  background: white;

  border: 1px solid var(--primary-rose);

  border-radius: var(--radius-sm);

  transition: var(--transition-smooth);

}



#btn-refresh-wellness:hover {

  background: var(--bg-cream);

}



@media (max-width: 576px) {

  #btn-refresh-wellness {

    position: static !important;

    display: flex !important;

    width: 100% !important;

    margin: 0 0 1rem 0 !important;

    text-align: center;

    box-sizing: border-box;

  }

}



@media (max-width: 480px) {

  #btn-refresh-wellness {

    position: static !important;

    display: inline-flex !important;

    width: auto !important;

    min-width: 150px;

    margin: 0 auto 1rem auto !important;

    padding: 0.5rem 1rem !important;

    font-size: 0.85rem !important;

    align-self: center;

  }

  

  .timeline-panel .status-card {

    padding: 1.25rem !important;

    display: flex;

    flex-direction: column;

  }

  

  #wellness-advice-container {

    margin-top: 0.5rem !important;

  }

}



/* ==========================================================================

   💖 MAMA LIFE - BOUTONS IA ANIMÉS COZY (Shimmer & Pulse Effects)

   ========================================================================== */



/* Animation continue du halo d'ombre (Pulse) */

@keyframes cozyPulse {

  0% {

    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.25);

  }

  50% {

    box-shadow: 0 4px 25px rgba(224, 122, 95, 0.55), 0 0 0 4px rgba(224, 122, 95, 0.15);

  }

  100% {

    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.25);

  }

}



/* Animation continue du dégradé brillant (Shimmer) */

@keyframes cozyShimmer {

  0% {

    background-position: -200% 0;

  }

  100% {

    background-position: 200% 0;

  }

}



.ai-cozy-btn {

  position: relative !important;

  overflow: hidden !important;

  z-index: 1;

  /* Utilisation d'un dégradé incluant une brillance centrale */

  background: linear-gradient(120deg, #D97764 0%, #E07A5F 35%, #FFF8E1 50%, #E07A5F 65%, #D97764 100%) !important;

  background-size: 200% 100% !important;

  animation: cozyShimmer 4s infinite linear, cozyPulse 3s infinite ease-in-out !important;

  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;

  border: none !important;

  color: #ffffff !important;

  font-weight: 700 !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;

}



/* Au survol : amplification de l'effet et léger grossissement */

.ai-cozy-btn:hover {

  transform: translateY(-2px) scale(1.03) !important;

  animation: cozyShimmer 2.5s infinite linear, cozyPulse 1.5s infinite ease-in-out !important;

  filter: brightness(1.05);

}



.ai-cozy-btn:active {

  transform: translateY(1px) scale(0.98) !important;

}



/* Version outline/secondaire (ex: régénérer/vider) */

.ai-cozy-btn-outline {

  position: relative !important;

  overflow: hidden !important;

  z-index: 1;

  background: #ffffff !important;

  border: 1.5px solid var(--primary-rose) !important;

  color: var(--primary-rose) !important;

  box-shadow: 0 2px 8px rgba(245, 183, 177, 0.15) !important;

  transition: all 0.3s ease !important;

}



.ai-cozy-btn-outline::before {

  content: '';

  position: absolute;

  top: 0;

  left: -150%;

  width: 50%;

  height: 100%;

  background: linear-gradient(90deg, transparent, rgba(245, 183, 177, 0.4), transparent);

  transform: skewX(-20deg);

  transition: none;

}



@keyframes outlineShimmer {

  0% { left: -150%; }

  50% { left: 150%; }

  100% { left: 150%; }

}



.ai-cozy-btn-outline {

  animation: cozyPulse 4s infinite ease-in-out !important;

}



.ai-cozy-btn-outline:hover::before {

  animation: outlineShimmer 1.5s infinite linear;

}



.ai-cozy-btn-outline:hover {

  transform: translateY(-1px) scale(1.02) !important;

  background: var(--bg-cream) !important;

  box-shadow: 0 4px 12px rgba(245, 183, 177, 0.3) !important;

}






/* Global custom background image support for baby size card (Option 3: Ratio 1:1, title top, no icon, desc bottom) */
.baby-size-card.has-background-img {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    align-self: start !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}
.baby-size-card.has-background-img .baby-size-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
}
.baby-size-card.has-background-img .baby-size-icon {
    display: none !important;
}
.baby-size-card.has-background-img .baby-size-desc {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}
.baby-size-card.has-background-img::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.10) 35%,
        rgba(0,0,0,0.10) 65%,
        rgba(0,0,0,0.70) 100%
    ) !important;
    z-index: 1 !important;
    border-radius: inherit !important;
}
.baby-size-card.has-background-img > * {
    position: relative !important;
    z-index: 2 !important;
}


/* Siren Icon Rotation Animation */
.alert-siren-icon {
  animation: rotate-siren 1.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes rotate-siren {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
}

/* ========================================================= */
/* 📱 EXCLUSION MOBILE POUR LES PANNEAUX D'OUTILS ET DE STATUT */
/* Masque les blocs de statut/outils sur mobile, sauf si le body porte la classe .page-tools-visible (outils-suivi.php) */
/* ========================================================= */
@media (max-width: 768px) {
    body:not(.page-tools-visible) .status-panel,
    body:not(.page-tools-visible) .dashboard-sidebar,
    body:not(.page-tools-visible) .sidebar-panel,
    body:not(.page-tools-visible) .user-settings-card {
        display: none !important;
    }

    /* Espace de sécurité pour que le footer ne soit pas mangé par la barre PWA du bas */
    footer {
        padding-bottom: 90px !important;
    }

    /* Fix PWA Mobile recommandé par Gemma 4: Dégager le formulaire de contact au-dessus de la barre d'onglets du bas */
    .contact-container {
        margin-bottom: 140px !important;
    }
}
