/* ============================================================
   STYLE.CSS — Le Cocon d'Aline — Identité visuelle complète
   Rose #D48C9E / Bleu #6B9AC4 / Quicksand + Pacifico + Nunito
   ============================================================ */

/* === ACCESSIBILITÉ : Skip to content === */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--rose, #D48C9E);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius, 8px) var(--radius, 8px);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 0;
}

/* === ACCESSIBILITÉ : Focus visible clavier === */
:focus-visible {
  outline: 3px solid var(--rose, #D48C9E);
  outline-offset: 2px;
}
html.dark :focus-visible {
  outline-color: #F5B7C1;
}

/* === PAGE LOADER === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity .4s ease, visibility .4s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-logo {
  height: 56px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.page-loader-text {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #D48C9E;
  overflow: hidden;
  white-space: nowrap;
}
.page-loader-text span {
  display: inline-block;
  opacity: 0;
  animation: loaderLetterIn .4s ease forwards;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes loaderLetterIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === POLICES AUTO-HÉBERGÉES (RGPD + perf — pas de requête Google) === */
/* Quicksand (400–700) — variable font, latin-ext + latin */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Nunito (400–700) — variable font, latin-ext + latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Pacifico (400) — latin-ext + latin */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pacifico-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pacifico-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === CSS VARIABLES === */
:root {
  --rose: #D48C9E;
  --rose-light: #FFF0F3;
  --rose-dark: #B86B7D;
  --rose-10: rgba(212,140,158,0.1);
  --rose-20: rgba(212,140,158,0.2);
  --blue: #6B9AC4;
  --blue-light: #E3F2FD;
  --blue-dark: #4A78A0;
  --blue-10: rgba(107,154,196,0.1);
  --text: #2D3748;
  --text-muted: #718096;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --shadow-rose: 0 8px 30px rgba(212,140,158,0.12);
  --shadow-hover: 0 20px 40px rgba(212,140,158,0.2);
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 50px;
  --transition: all 0.3s ease;
}

html.dark {
  --rose: #E89BAD;
  --rose-light: #2D1F23;
  --rose-dark: #f0a8b8;
  --rose-10: rgba(232,155,173,0.1);
  --rose-20: rgba(232,155,173,0.2);
  --blue: #8BB4D9;
  --blue-light: #1e3a52;
  --blue-dark: #a8cce8;
  --blue-10: rgba(139,180,217,0.1);
  --text: #E2E8F0;
  --text-muted: #A0AEC0;
  --bg: #1A202C;
  --card: #2D3748;
  --border: #4A5568;
  --shadow-rose: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.4);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Quicksand', sans-serif; font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--rose); color: white; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* === HEADER === */
.main-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rose-10);
  transition: var(--transition);
}
html.dark .main-header { background: rgba(26,32,44,0.7); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 75px; }
@media (min-width: 768px) { .header-inner { height: 85px; } }
@media (min-width: 1024px) { .header-inner { height: 95px; } }

.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; max-width: 260px; }
@media (min-width: 768px) { .logo { max-width: 320px; } }
@media (min-width: 1024px) { .logo { max-width: none; } }
.logo-img { 
  height: 60px; width: auto; max-width: 100%; object-fit: contain; 
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (min-width: 768px) { .logo-img { height: 68px; } }
@media (min-width: 1024px) { .logo-img { height: 75px; } }
/* In dark mode, the original logo with dark background fits naturally */
html.dark .logo-img { box-shadow: none; }
.logo-img-sm { height: 32px; }
.logo-text { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); }
.logo-text em { font-family: 'Pacifico', cursive; color: var(--rose); font-style: normal; font-weight: 400; }
.logo-sm .logo-text { font-size: 0.875rem; }

.main-nav { display: none; gap: 0.25rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.nav-link {
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 0.875rem;
  color: var(--text-muted); transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rose);
  border-radius: 1px;
  transition: width .25s ease, left .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}
.nav-link:hover { color: var(--rose); background: var(--rose-10); transform: translateY(-1px); }
.nav-link.active { color: var(--rose); background: var(--rose-10); }

/* Onglet Éditorial — identité rose distincte */
.nav-link-editorial {
  color: var(--rose-dark);
  background: var(--rose-10);
  border: 1px solid var(--rose-20);
  font-weight: 700;
}
.nav-link-editorial:hover,
.nav-link-editorial.active {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}
html.dark .nav-link-editorial { color: var(--rose); border-color: var(--rose-20); }
html.dark .nav-link-editorial:hover,
html.dark .nav-link-editorial.active { background: var(--rose); color: white; }

/* Section Éditoriale — cards articles */
.editorial-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .editorial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .editorial-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--rose-20); }
.article-card-img { width: 100%; height: 180px; object-fit: cover; background: var(--rose-10); }
.article-card-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--rose-10), var(--blue-10)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.article-card-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.article-card-title { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); line-height: 1.3; }
.article-card-summary { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.article-card-link { margin-top: auto; padding-top: 0.75rem; font-size: 0.8rem; font-weight: 700; color: var(--rose); font-family: 'Quicksand', sans-serif; }
.article-card-link:hover { color: var(--rose-dark); }

/* Page article détail */
.article-detail { max-width: 720px; margin: 0 auto; }
.article-detail h2 { font-size: 1.35rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.article-detail h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; color: var(--rose-dark); }
.article-detail p { margin-bottom: 0.9rem; color: var(--text); line-height: 1.75; }
.article-detail ul, .article-detail ol { padding-left: 1.5rem; margin-bottom: 0.9rem; }
.article-detail li { margin-bottom: 0.35rem; line-height: 1.65; }
.article-detail a { color: var(--rose); text-decoration: underline; }
.article-detail blockquote { border-left: 3px solid var(--rose); padding-left: 1rem; color: var(--text-muted); font-style: italic; margin: 1rem 0; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; border-radius: var(--radius-full);
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.875rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-rose { background: var(--rose); color: white; border-color: var(--rose); }
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: white; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; }
.btn-outline-rose { background: transparent; border-color: var(--rose); color: var(--rose); }
.btn-outline-rose:hover { background: var(--rose); color: white; }
.btn-white { background: white; color: var(--rose); border-color: white; }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; padding: 0.5rem; }
.btn-ghost:hover { color: var(--rose); background: var(--rose-10); }
.btn-danger { color: #E53E3E; border-color: #FED7D7; background: transparent; }
.btn-danger:hover { background: #FFF5F5; }
.btn-full { width: 100%; justify-content: center; }
/* MODIF: Mettre en avant le bouton Connexion */
.header-login-btn {
  box-shadow: 0 8px 20px rgba(212,140,158,0.28);
  font-weight: 800;
}
.header-login-btn:hover {
  box-shadow: 0 10px 26px rgba(212,140,158,0.35);
}

.btn-icon {
  padding: 0.5rem; border-radius: var(--radius); background: transparent;
  color: var(--text-muted); cursor: pointer; border: none; transition: var(--transition);
  display: inline-flex; align-items: center;
}
.btn-icon:hover { background: var(--rose-10); color: var(--rose); }

.theme-toggle {
  padding: 0.5rem; border-radius: var(--radius); background: transparent;
  border: none; cursor: pointer; color: var(--text-muted); transition: var(--transition);
}
.theme-toggle:hover { background: var(--rose-10); }
html:not(.dark) .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { color: #F6AD55; }

.mobile-toggle {
  display: flex; padding: 0.5rem; border-radius: var(--radius); background: transparent;
  border: none; cursor: pointer; color: var(--text); transition: var(--transition);
}
.mobile-toggle:hover { background: var(--rose-10); }
.mobile-toggle .icon-close { display: none; }
.mobile-toggle.open .icon-menu { display: none; }
.mobile-toggle.open .icon-close { display: block; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* Hide non-essential header items on very small screens */
@media (max-width: 479px) {
  .header-actions .btn-sm:not(.header-login-btn) { display: none; }
  .header-actions .header-login-btn { display: inline-flex; padding: 0.4rem 0.85rem; font-size: 0.78rem; }
  .header-actions .btn-icon { display: none; }
  .header-actions .theme-toggle { display: none; }
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none; position: fixed; top: 75px; left: 0; right: 0; bottom: 0;
  background: var(--card); z-index: 999; padding: 1rem; overflow-y: auto;
  animation: slideDown 0.2s ease;
  border-top: 1px solid var(--rose-10);
}
.mobile-menu.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu .nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; font-size: 1rem; border-radius: var(--radius); }
.mobile-menu .nav-link:hover { background: var(--rose-10); color: var(--rose); }
.mobile-menu .nav-link.active { background: var(--rose-10); color: var(--rose); }
.mobile-menu .mobile-login-link { background: var(--rose); color: #fff; justify-content: center; margin-top: 0.5rem; }
.mobile-menu .mobile-login-link:hover { background: var(--rose-dark); color: #fff; }
.mobile-menu-divider { height: 1px; background: var(--rose-10); margin: 0.75rem 0; }

/* === SECTIONS === */
.section { padding: 4rem 0; }
.section-lg { padding: 6rem 0; }
.section-rose { background: linear-gradient(135deg, var(--rose-light) 0%, var(--blue-light) 100%); }
.section-rose-light { background: linear-gradient(135deg, rgba(255,240,243,0.5) 0%, transparent 100%); }
.section-blue-light { background: linear-gradient(135deg, rgba(227,242,253,0.3) 0%, transparent 100%); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 1.875rem; color: var(--text); margin-bottom: 0.75rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { color: var(--text-muted); max-width: 32rem; margin: 0 auto; }

/* === HERO === */
.hero { position: relative; overflow: hidden; padding: 4rem 0; }
@media (min-width: 768px) { .hero { padding: 6rem 0; } }
.hero-bg-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
  animation: blobFloat 7s ease-in-out infinite;
}
.hero-bg-blob-1 { width: 16rem; height: 16rem; top: 2rem; right: 2rem; background: var(--rose-20); }
.hero-bg-blob-2 { width: 12rem; height: 12rem; bottom: 2rem; left: 2rem; background: var(--blue-10); animation-delay: 2s; }
@keyframes blobFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.hero-title { font-size: 1.75rem; color: var(--text); line-height: 1.1; margin-bottom: 1rem; }
@media (min-width: 480px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-title .accent { font-family: 'Pacifico', cursive; color: var(--rose); font-weight: 400; }
.hero-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; max-width: 28rem; line-height: 1.7; }
@media (min-width: 768px) { .hero-desc { font-size: 1.125rem; } }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-image-wrap { display: flex; justify-content: center; }
.hero-image {
  width: 16rem; height: 16rem; border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  overflow: hidden; box-shadow: var(--shadow-rose);
  animation: blobFloat 6s ease-in-out infinite;
}
@media (min-width: 768px) { .hero-image { width: 20rem; height: 20rem; } }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--card); border-radius: 1rem; padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 0.5rem;
}
.hero-badge svg { color: var(--rose); }
.hero-badge span { font-size: 0.875rem; font-weight: 700; font-family: 'Quicksand',sans-serif; color: var(--text); }

/* === CARDS === */
.card {
  background: var(--card); border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: var(--shadow-rose); border: 1px solid var(--rose-10);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-flat { box-shadow: none; border: 1px solid var(--border); }
.card-flat:hover { box-shadow: var(--shadow-rose); }

.card-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.card-icon-rose { background: var(--rose-10); color: var(--rose); }
.card-icon-blue { background: var(--blue-10); color: var(--blue); }
.card-title { font-size: 1.25rem; color: var(--text); margin-bottom: 0.75rem; }
.card-text { color: var(--text-muted); line-height: 1.7; }

.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === FORMS === */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; font-size: 0.875rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.625rem 1rem; border: 1px solid var(--rose-20);
  border-radius: var(--radius); font-family: 'Nunito',sans-serif; font-size: 0.9375rem;
  color: var(--text); background: var(--card); transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-10);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23718096' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox input[type="checkbox"] { width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; accent-color: var(--rose); cursor: pointer; flex-shrink: 0; }
.form-checkbox label { font-size: 0.875rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form-checkbox label a { color: var(--rose); text-decoration: underline; }

.form-card { background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem 2rem; box-shadow: var(--shadow-rose); border: 1px solid var(--rose-10); }
.form-section-title { font-size: 1.25rem; color: var(--rose); margin-bottom: 1rem; }
.form-info { background: var(--rose-10); padding: 1rem; border-radius: var(--radius); }

.enfant-block { background: var(--rose-10); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 0.75rem; }
.enfant-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.enfant-header span { font-family: 'Quicksand',sans-serif; font-weight: 700; font-size: 0.875rem; color: var(--text); }
/* MODIF: Sélection rapide des profils enfants enregistrés */
.child-quick-picks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.child-pick-btn {
  border: 1px solid var(--rose-20); background: var(--card); color: var(--text);
  border-radius: var(--radius-full); padding: 0.35rem 0.75rem; font-size: 0.8rem;
  font-family: 'Quicksand', sans-serif; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.child-pick-btn:hover { border-color: var(--rose); color: var(--rose); }
.child-pick-btn.active { background: var(--rose); color: #fff; border-color: var(--rose); }

/* === STATUS BADGES === */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: #FFFAF0; color: #C05621; }
.status-discussion { background: #EBF8FF; color: #2B6CB0; }
.status-accepted { background: #F0FFF4; color: #276749; }
.status-refused { background: #FFF5F5; color: #9B2C2C; }
.status-archived { background: #F7FAFC; color: #718096; }
html.dark .status-pending { background: rgba(192,86,33,0.15); }
html.dark .status-discussion { background: rgba(43,108,176,0.15); }
html.dark .status-accepted { background: rgba(39,103,73,0.15); }
html.dark .status-refused { background: rgba(155,44,44,0.15); }
html.dark .status-archived { background: rgba(113,128,150,0.15); }

.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.625rem; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; }
.badge-rose { background: var(--rose-10); color: var(--rose); }
.badge-blue { background: var(--blue-10); color: var(--blue); }

/* === ACCORDION (FAQ) === */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--rose-10); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; background: transparent; border: none; cursor: pointer;
  font-family: 'Quicksand',sans-serif; font-weight: 600; font-size: 1rem;
  color: var(--text); text-align: left; transition: var(--transition);
}
.accordion-trigger:hover { color: var(--rose); }
.accordion-trigger svg { transition: transform 0.3s ease; flex-shrink: 0; color: var(--text-muted); }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content-inner { padding: 0 1.5rem 1rem; color: var(--text-muted); line-height: 1.7; }

/* === FLASH MESSAGES === */
.flash-message {
  position: fixed; top: 80px; right: 1rem; z-index: 200;
  padding: 0.875rem 1.25rem; border-radius: var(--radius-lg); max-width: 400px;
  font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.flash-success { background: #F0FFF4; color: #276749; border-left: 4px solid #48BB78; }
.flash-error { background: #FFF5F5; color: #9B2C2C; border-left: 4px solid #FC8181; }
.flash-info { background: #EBF8FF; color: #2B6CB0; border-left: 4px solid #63B3ED; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: inherit; padding: 0; line-height: 1; }

/* === FOOTER === */
.main-footer { border-top: 1px solid var(--rose-10); background: var(--card); margin-top: auto; padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }
.footer-links { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--rose); }
.footer-links .separator { color: var(--border); }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--rose) 0%, var(--blue) 100%);
  border-radius: var(--radius-xl); padding: 3rem; text-align: center; color: white;
}
@media (min-width: 768px) { .cta-banner { padding: 4rem; } }
.cta-banner h2 { font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .cta-banner h2 { font-size: 2.25rem; } }
.cta-banner p { opacity: 0.9; font-size: 1.125rem; max-width: 32rem; margin: 0 auto 2rem; }
.cta-actions-centered { display: flex; justify-content: center; }

/* === SUCCESS BOX === */
.success-box {
  background: var(--card); border-radius: var(--radius-xl); padding: 2rem 3rem;
  box-shadow: var(--shadow-rose); text-align: center; max-width: 32rem; margin: 0 auto;
}
.success-icon { width: 5rem; height: 5rem; border-radius: 50%; background: #F0FFF4; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.success-icon svg { color: #48BB78; }
.warning-box { background: #FFFAF0; border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; text-align: left; display: flex; gap: 0.5rem; }
.warning-box svg { color: #EAB308; flex-shrink: 0; margin-top: 0.125rem; }
.warning-box p { font-size: 0.875rem; color: #92400E; }
html.dark .warning-box { background: rgba(146,64,14,0.1); }
html.dark .warning-box p { color: #FBBF24; }

/* === REVIEW STARS === */
.stars { display: flex; gap: 2px; }
.stars svg { color: #FBBF24; }

/* === HORAIRES === */
.horaire-card { background: var(--card); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; border-left: 4px solid var(--rose); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.horaire-label { font-family: 'Quicksand',sans-serif; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.horaire-time { font-size: 1.5rem; font-weight: 700; color: var(--rose); margin-bottom: 0.25rem; }
.horaire-note { font-size: 0.875rem; color: var(--text-muted); }

/* === RGPD SECTION === */
.rgpd-card { background: var(--card); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid var(--rose-10); }
.rgpd-card + .rgpd-card { margin-top: 1.5rem; }
.rgpd-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.rgpd-header h2 { font-size: 1.25rem; color: var(--text); }
.rgpd-content { color: var(--text-muted); line-height: 1.7; }
.rgpd-content ul { margin-left: 1.5rem; margin-top: 0.5rem; }
.rgpd-content li { margin-bottom: 0.25rem; }
.rgpd-content strong { color: var(--text); }
.rgpd-content a { color: var(--rose); text-decoration: underline; }

/* === ADMIN LAYOUT === */
.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 16rem; background: var(--card); border-right: 1px solid var(--rose-10);
  display: flex; flex-direction: column; flex-shrink: 0; transition: var(--transition);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
}
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
}

.sidebar-header { padding: 1rem; border-bottom: 1px solid var(--rose-10); }
.sidebar-nav { flex: 1; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem;
  border-radius: var(--radius); font-family: 'Quicksand',sans-serif; font-weight: 600;
  font-size: 0.875rem; color: var(--text-muted); transition: var(--transition);
  border: none; background: transparent; cursor: pointer; width: 100%; text-align: left;
}
.sidebar-link:hover { background: var(--rose-10); color: var(--rose); }
.sidebar-link.active { background: var(--rose-10); color: var(--rose); }
.sidebar-logout { color: #E53E3E; }
.sidebar-logout:hover { background: rgba(229,62,62,0.1); color: #E53E3E; }
.sidebar-footer { padding: 0.5rem; border-top: 1px solid var(--rose-10); display: flex; flex-direction: column; gap: 0.25rem; }

.admin-main { flex: 1; margin-left: 16rem; min-height: 100vh; display: flex; flex-direction: column; }
@media (max-width: 768px) { .admin-main { margin-left: 0; } }

.admin-topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rose-10); padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
html.dark .admin-topbar { background: rgba(26,32,44,0.7); }
.admin-page-title { font-size: 1.125rem; color: var(--text); }
.admin-global-search { display:flex; align-items:center; gap:0.5rem; flex:1; max-width:720px; }
.admin-global-search .form-input { min-width:180px; }
.admin-global-search .form-select { min-width:120px; }
.admin-topbar-actions { display:flex; align-items:center; gap:0.6rem; margin-left:auto; }
.admin-notif-btn {
  display:inline-flex; align-items:center; gap:0.4rem; padding:0.4rem 0.6rem;
  border:1px solid var(--rose-10); border-radius:var(--radius-full); color:var(--text-muted);
  text-decoration:none; background:var(--card); transition:var(--transition);
}
.admin-notif-btn:hover { border-color: var(--rose); color: var(--rose); }
.admin-user-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.sidebar-toggle { background: none; border: none; cursor: pointer; padding: 0.375rem; border-radius: var(--radius); color: var(--text-muted); transition: var(--transition); }
.sidebar-toggle:hover { background: var(--rose-10); }
@media (max-width: 1024px) {
  .admin-topbar { flex-wrap: wrap; align-items: stretch; }
  .admin-global-search { order: 3; width: 100%; max-width: none; }
  .admin-topbar-actions { order: 2; }
}
@media (max-width: 640px) {
  .admin-global-search { flex-direction: column; align-items: stretch; }
  .admin-global-search .btn { width: 100%; justify-content: center; }
  .admin-notif-btn span:not(.badge) { display: none; }
}

.admin-content { padding: 1.5rem; flex: 1; }

/* === ADMIN STAT CARDS === */
.stat-card { background: var(--card); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--rose-10); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }
.stat-value { font-size: 2rem; font-family: 'Quicksand',sans-serif; font-weight: 700; color: var(--text); }

/* === ADMIN REQUEST LIST === */
.request-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--rose-10); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 0.75rem; }
.request-header {
  padding: 1rem; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: var(--transition); flex-wrap: wrap; gap: 0.5rem;
}
.request-header:hover { background: var(--rose-10); }
.request-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.request-body { border-top: 1px solid var(--rose-10); padding: 1rem; display: none; }
.request-card.open .request-body { display: block; }
.request-info-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .request-info-grid { grid-template-columns: 1fr 1fr; } }
.request-info h4 { font-size: 0.875rem; color: var(--rose); margin-bottom: 0.5rem; }
.request-info p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.request-enfants { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.request-enfant-tag { background: var(--rose-10); color: var(--text); font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: var(--radius-full); }
.request-message { background: var(--blue-10); padding: 0.75rem; border-radius: var(--radius); font-size: 0.875rem; color: var(--text); font-style: italic; margin-bottom: 1rem; }
.request-notes { margin-bottom: 1rem; }
.request-notes textarea { width: 100%; }
.request-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* === FILTER PILLS === */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-pill {
  padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--rose-10); background: var(--card); color: var(--text-muted);
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.filter-pill:hover { background: var(--rose-10); color: var(--rose); }
.filter-pill.active { background: var(--rose); color: white; border-color: var(--rose); }

/* === ADMIN TABLE-LIKE ROWS === */
.admin-row { background: var(--card); border-radius: var(--radius-lg); padding: 1rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--rose-10); box-shadow: 0 1px 4px rgba(0,0,0,0.03); margin-bottom: 0.5rem; }
.admin-row-info h3 { font-size: 0.9375rem; color: var(--text); font-weight: 600; }
.admin-row-info p { font-size: 0.8125rem; color: var(--text-muted); }
.family-admin-actions { display:flex; gap:0.5rem; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

/* MODIF: Optimisation mobile spécifique à la page Admin > Familles */
@media (max-width: 900px) {
  .family-admin-row { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .family-admin-actions { width: 100%; justify-content: stretch; }
  .family-admin-actions form { flex: 1 1 100%; }
  .family-admin-actions .btn { width: 100%; justify-content: center; }
  .family-child-admin-form .form-grid.form-grid-2 { grid-template-columns: 1fr; }
}

/* === EDITABLE BLOCKS (Pencil) === */
.editable-wrapper { position: relative; }
.pencil-edit-btn {
  position: absolute; top: -8px; right: -8px; z-index: 10;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--rose); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(212,140,158,0.3); transition: var(--transition);
  opacity: 0.7;
}
.pencil-edit-btn:hover { opacity: 1; transform: scale(1.1); }
.pencil-small { width: 24px; height: 24px; top: -6px; right: -6px; }

/* Inline editor overlay */
.inline-editor-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 200; align-items: center; justify-content: center;
}
.inline-editor-overlay.open { display: flex; }
.inline-editor {
  background: var(--card); border-radius: var(--radius-xl); padding: 2rem; width: 90%; max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.inline-editor h3 { font-size: 1.125rem; color: var(--text); margin-bottom: 1rem; }
.inline-editor textarea { width: 100%; min-height: 120px; padding: 0.75rem; border: 1px solid var(--rose-20); border-radius: var(--radius); font-family: 'Nunito',sans-serif; font-size: 0.9375rem; color: var(--text); background: var(--bg); resize: vertical; }
.inline-editor-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }

/* MODIF: Icon picker grid — sélecteur d'icônes dans le modal crayon */
.icon-picker-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-top: 0.5rem; margin-bottom: 0.75rem;
}
@media (max-width: 480px) { .icon-picker-grid { grid-template-columns: repeat(4, 1fr); } }
.icon-picker-item {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius); border: 2px solid var(--rose-20);
  background: var(--bg); color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.icon-picker-item:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-5, rgba(212,140,158,0.05)); }
.icon-picker-item.selected { border-color: var(--rose); background: var(--rose); color: white; box-shadow: 0 2px 8px rgba(212,140,158,0.3); }

/* MODIF: Carte d'ajout admin (+) — dashed border pour ajouter un élément */
.admin-add-card { opacity: 0.6; }
.admin-add-card:hover { opacity: 1; border-color: var(--rose) !important; }

/* MODIF: Bouton Masquer (delete) dans le modal crayon */
.btn-delete-item { font-size: 0.8125rem; display: flex; align-items: center; gap: 0.35rem; }
.btn-delete-item:hover { opacity: 0.8; }

/* === SORTABLE DRAG HANDLE === */
.drag-handle { cursor: grab; color: var(--text-muted); padding: 0.25rem; display: flex; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { box-shadow: 0 8px 30px rgba(212,140,158,0.2); }

/* === AUTH PAGES === */
.auth-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 28rem; background: var(--card); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-rose); }
.auth-card-rose { border-top: 4px solid var(--rose); }
.auth-card-blue { border-top: 4px solid var(--blue); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon { width: 4rem; height: 4rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.auth-icon-rose { background: var(--rose-10); color: var(--rose); }
.auth-icon-blue { background: var(--blue-10); color: var(--blue); }
.auth-title { font-size: 1.5rem; color: var(--text); }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--rose); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.password-wrap { position: relative; }
.password-toggle { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0.25rem; }

/* === FAMILY DASHBOARD === */
.family-header { padding: 2rem 0; }
.family-header h1 { font-size: 1.875rem; }
@media (min-width: 768px) { .family-header h1 { font-size: 2.25rem; } }
.family-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.family-profile { display: flex; align-items: center; gap: 0.75rem; background: var(--card); border-radius: var(--radius-lg); padding: 1rem; border: 1px solid var(--rose-10); margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.family-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--rose-10); display: flex; align-items: center; justify-content: center; color: var(--rose); }
/* MODIF: KPI + carnet enfants dans l'Espace Famille */
.family-kpi-grid { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .family-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.family-kpi-card {
  background: var(--card); border: 1px solid var(--rose-10); border-radius: var(--radius-lg);
  padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.kpi-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.kpi-value { font-family: 'Quicksand', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--rose); line-height: 1; }
.kpi-sub { margin-top: 0.35rem; font-size: 0.72rem; color: var(--text-muted); }
.family-children-zone { margin-bottom: 2rem; }
.family-children-head { margin-bottom: 1rem; }
.family-children-grid { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .family-children-grid { grid-template-columns: 320px 1fr; } }
.family-child-add-card { height: fit-content; }
.child-profile-card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--rose-10);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); padding: 1rem; margin-bottom: 0.75rem;
}
.child-profile-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.5rem; }
.child-profile-top h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }
.child-profile-metrics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.child-metric {
  background: var(--blue-10); color: var(--blue); border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem; font-size: 0.72rem; font-weight: 600;
}
.child-profile-form { margin-bottom: 0.5rem; }
.child-profile-form .form-group { margin-bottom: 0.55rem; }
.child-profile-form .form-input,
.child-profile-form .form-textarea { font-size: 0.84rem; padding: 0.5rem 0.7rem; }
.child-profile-actions { display: flex; justify-content: flex-end; }

.empty-state { text-align: center; padding: 4rem 2rem; background: var(--card); border-radius: var(--radius-xl); border: 1px solid var(--rose-10); }
.empty-state svg { color: var(--text-muted); opacity: 0.3; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.125rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

/* === REVIEW CARDS (public) === */
.review-card { background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-top: 4px solid var(--blue); }
.review-text { color: var(--text-muted); font-style: italic; margin: 0.75rem 0; line-height: 1.7; }
.review-author { font-family: 'Quicksand',sans-serif; font-weight: 700; color: var(--rose); }
/* MODIF: Styles dédiés à la nouvelle page publique des avis */
.review-list-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .review-list-grid { grid-template-columns: repeat(2, 1fr); } }
.review-card-page { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.review-card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.reviews-summary-card {
  background: var(--card); border-radius: var(--radius-xl); border: 1px solid var(--rose-10);
  box-shadow: var(--shadow-rose); padding: 1.5rem; display: flex; align-items: center; gap: 1.25rem;
}
.reviews-summary-rating {
  font-family: 'Quicksand', sans-serif; font-size: 2rem; font-weight: 700; color: var(--rose);
  min-width: 100px; text-align: center;
}

/* === PAGE HEADER BANNER === */
.page-banner { padding: 2rem 0; text-align: center; }
@media (min-width: 768px) { .page-banner { padding: 3rem 0; } }
.page-banner h1 { font-size: 1.5rem; color: var(--text); margin-bottom: 0.75rem; }
@media (min-width: 480px) { .page-banner h1 { font-size: 2rem; } }
@media (min-width: 640px) { .page-banner h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .page-banner h1 { font-size: 3rem; } }
.page-banner p { color: var(--text-muted); font-size: 0.875rem; }
@media (min-width: 768px) { .page-banner p { font-size: 1.125rem; } }

/* === ABOUT SECTIONS === */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image { border-radius: 50px 0 50px 0; overflow: hidden; box-shadow: var(--shadow-rose); }
.about-image img { width: 100%; height: 24rem; object-fit: cover; }
.qualification-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.qualification-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text); }
.qualification-item svg { color: var(--rose); flex-shrink: 0; }
.qualification-box { background: var(--rose-10); border-radius: var(--radius-lg); padding: 1.25rem; margin: 1.5rem 0; }
.qualification-box h3 { font-size: 1rem; color: var(--rose); margin-bottom: 0.75rem; }

/* === CONTACT CARDS === */
.contact-card { text-align: center; background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem; border: 1px solid var(--rose-10); box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: var(--transition); }
.contact-card:hover { box-shadow: var(--shadow-rose); transform: translateY(-2px); }
.contact-value { color: var(--rose); font-weight: 600; }
.contact-value a { color: var(--rose); }
.contact-value a:hover { text-decoration: underline; }
.contact-note { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }

/* === TYPE GARDE CARDS === */
.garde-card { display: flex; gap: 1rem; background: var(--card); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--rose-10); transition: var(--transition); }
.garde-card:hover { box-shadow: var(--shadow-rose); }
.garde-icon { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--blue-10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.garde-tag { display: inline-block; font-size: 0.75rem; background: var(--blue-10); color: var(--blue); padding: 0.25rem 0.75rem; border-radius: var(--radius-full); margin-top: 0.5rem; font-weight: 500; }

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-rose { color: var(--rose); }
.text-blue { color: var(--blue); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }

/* === CALENDAR WIDGET === */
.calendar-widget { background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-rose); border: 1px solid var(--rose-10); }
.calendar-header-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-month-title { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--text); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-day-header { text-align: center; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.75rem; color: var(--text-muted); padding: 0.5rem 0; text-transform: uppercase; }
.calendar-day {
    position: relative; text-align: center; padding: 0.5rem 0.25rem; min-height: 2.75rem;
    border-radius: var(--radius); cursor: default; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.calendar-day span { font-size: 0.875rem; font-weight: 600; color: var(--text); z-index: 1; }
.calendar-day.empty { cursor: default; }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--rose-20); }
.calendar-day.today span { color: var(--rose); font-weight: 800; }
.calendar-day.past { opacity: 0.4; }
.calendar-day.blocked { background: #FFF5F5; cursor: not-allowed; }
html.dark .calendar-day.blocked { background: rgba(229,62,62,0.12); }
.calendar-day.blocked span { color: #E53E3E; text-decoration: line-through; }
.calendar-day.has-booking { background: #F0FFF4; }
html.dark .calendar-day.has-booking { background: rgba(34,197,94,0.12); }
.calendar-day.has-pending { background: #FFFAF0; }
html.dark .calendar-day.has-pending { background: rgba(234,179,8,0.12); }
.calendar-day.selectable:hover { background: var(--rose-10); cursor: pointer; }
.calendar-day.selected { background: var(--rose); }
.calendar-day.selected span { color: white; }
.calendar-day.in-range { background: var(--rose-10); }
.calendar-day.in-range span { color: var(--rose); }
/* MODIF: Priorité visuelle à la date sélectionnée (évite texte blanc sur fond non rose) */
.calendar-day.available-day.selected,
.calendar-day.partial-day.selected,
.calendar-day.today.selected,
.calendar-day.selected {
  background: var(--rose) !important;
  box-shadow: inset 0 0 0 1px var(--rose-dark);
}
.calendar-day.available-day.selected span,
.calendar-day.partial-day.selected span,
.calendar-day.today.selected span,
.calendar-day.selected span {
  color: #fff !important;
  text-decoration: none;
}
.calendar-day.selected .day-indicator { background: #fff; }
.calendar-day.in-range:not(.selected) { background: var(--rose-10) !important; }

.day-indicator { width: 6px; height: 6px; border-radius: 50%; }
.blocked-indicator { background: #E53E3E; }
.booking-indicator { background: #22C55E; }
.pending-indicator { background: #EAB308; }

.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--rose-10); }
.legend-item { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.calendar-admin-wrap { max-width: 100%; }

/* Calendar public - for care request form */
.calendar-public-wrap { margin-bottom: 1.5rem; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.calendar-selected-info {
    background: var(--rose-10); border-radius: var(--radius); padding: 0.75rem 1rem;
    font-size: 0.875rem; color: var(--rose); font-weight: 600; margin-top: 0.75rem;
    display: none; align-items: center; gap: 0.5rem;
}
.calendar-selected-info.visible { display: flex; }
.calendar-feedback {
  display: none; margin-top: 0.5rem; border-radius: var(--radius); padding: 0.625rem 0.75rem;
  font-size: 0.8rem; font-weight: 600;
}
.calendar-feedback.visible { display: block; }
.calendar-feedback.error { background: #FFF5F5; color: #9B2C2C; border-left: 3px solid #FC8181; }
.calendar-feedback.info { background: #EBF8FF; color: #2B6CB0; border-left: 3px solid #63B3ED; }
.available-indicator { background: #22C55E; }
.partial-indicator { background: #F59E0B; }
.calendar-day.partial-day { background: #FFFAF0; }
html.dark .calendar-day.partial-day { background: rgba(245,158,11,0.15); }
.calendar-day.available-day { background: #F0FFF4; }
html.dark .calendar-day.available-day { background: rgba(34,197,94,0.12); }

/* === PRINT === */
@media print { .main-header, .main-footer, .no-print { display: none; } }
