/*
Theme Name:   Astra Enfant
Theme URI:    
Description:  Thème enfant d'Astra pour la résidence
Author:       Administrateur
Author URI:   
Template:     astra
Version:      1.0.0
Text Domain:  astra-enfant
*/

/* ============================================================
   Styles globaux de la résidence
   ============================================================ */

/* Import des polices Google */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* Variables de couleur */
:root {
  --bg-page:        #0f1923;
  --bg-card:        #151f2a;
  --bg-bar:         #0a111a;
  --text-primary:   #f0ebe3;
  --text-secondary: #c0b8a8;
  --text-muted:     #7a8a96;
  --text-faint:     #4a5a68;
  --accent-gold:    #c8af78;
  --accent-blue:    #7ab3e0;
  --accent-green:   #5abf96;
  --accent-purple:  #b07ad0;
  --accent-orange:  #e8806a;
  --border:         rgba(200, 175, 120, 0.10);
  --border-hover:   rgba(200, 175, 120, 0.28);
  --radius:         10px;
  --radius-sm:      6px;
}

/* Fond général du site */
body {
  background-color: var(--bg-page) !important;
  color: var(--text-secondary) !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Masquer les éléments Astra inutiles sur la page d'accueil */
body.page-template-page-accueil .site-header,
body.page-template-page-accueil .entry-header,
body.page-template-page-accueil .entry-meta,
body.page-template-page-accueil .breadcrumb-trail,
body.page-template-page-accueil footer.site-footer {
  display: none !important;
}

/* Supprimer les marges/padding Astra sur la page d'accueil */
body.page-template-page-accueil .site-content,
body.page-template-page-accueil .content-area,
body.page-template-page-accueil .entry-content,
body.page-template-page-accueil #primary,
body.page-template-page-accueil .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.page-template-page-accueil #content {
  padding-top: 0 !important;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.res-topbar {
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.res-topbar-name {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.res-topbar-name strong {
  color: var(--accent-gold);
  font-weight: 500;
}

.res-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.res-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1e3a5f;
  border: 1px solid rgba(200, 175, 120, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 500;
  text-transform: uppercase;
}

.res-logout {
  font-size: 11px;
  color: var(--accent-gold);
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.15s;
}

.res-logout:hover { opacity: 1; }

/* ============================================================
   LAYOUT
   ============================================================ */
.res-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ============================================================
   HERO
   ============================================================ */
.res-hero {
  padding: 2.8rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}

.res-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.res-hero h1 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.res-hero h1 em {
  font-style: italic;
  color: var(--accent-gold);
}

.res-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.res-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.res-chip {
  background: rgba(200, 175, 120, 0.08);
  border: 1px solid rgba(200, 175, 120, 0.20);
  border-radius: 20px;
  padding: 0.28rem 0.85rem;
  font-size: 11px;
  color: var(--accent-gold);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.res-sections {
  display: grid;
  gap: 1.2rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.res-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.res-card:hover { border-color: var(--border-hover); }

.res-card-header {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(200, 175, 120, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.res-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.res-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.res-icon-news   { background: rgba(200, 175, 120, 0.12); }
.res-icon-docs   { background: rgba(59, 130, 220, 0.12); }
.res-icon-info   { background: rgba(52, 168, 120, 0.12); }
.res-icon-cal    { background: rgba(180, 100, 200, 0.12); }
.res-icon-work   { background: rgba(220, 100, 60, 0.12); }

.res-card-title h2 {
  font-size: 13px;
  font-weight: 500;
  color: #d8d0c4;
  letter-spacing: 0.01em;
  margin: 0;
}

.res-see-all {
  font-size: 11px;
  color: var(--accent-gold);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.15s;
}

.res-see-all:hover { opacity: 1; }

.res-card-body { padding: 1rem 1.2rem; }

/* ============================================================
   ACTUALITÉS
   ============================================================ */
.res-news-list { display: flex; flex-direction: column; gap: 0.75rem; }

.res-news-item { display: flex; gap: 0.8rem; align-items: flex-start; }

.res-news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  margin-top: 7px;
  flex-shrink: 0;
}

.res-news-content { flex: 1; }

.res-news-title {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 2px;
}

.res-news-meta { font-size: 10px; color: var(--text-faint); }

.res-badge {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
}

.res-badge-official { background: rgba(200, 175, 120, 0.15); color: var(--accent-gold); }
.res-badge-resident { background: rgba(59, 130, 220, 0.12);  color: var(--accent-blue); }

/* ============================================================
   DOCUMENTATION
   ============================================================ */
.res-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.res-doc-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.res-doc-item:hover {
  background: rgba(200, 175, 120, 0.06);
  border-color: rgba(200, 175, 120, 0.18);
}

.res-doc-ext {
  font-size: 9px;
  font-weight: 500;
  background: #1e3a5f;
  color: var(--accent-blue);
  border-radius: 3px;
  padding: 2px 5px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.res-doc-name {
  font-size: 11px;
  color: #b0a898;
  line-height: 1.35;
}

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */
.res-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.res-info-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}

.res-info-label {
  font-size: 9px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.res-info-val {
  font-size: 12px;
  color: var(--text-secondary);
}

.res-info-val.urgent { color: var(--accent-orange); }

/* ============================================================
   CALENDRIER
   ============================================================ */
.res-cal-list { display: flex; flex-direction: column; gap: 0.75rem; }

.res-cal-item { display: flex; align-items: center; gap: 0.9rem; }

.res-cal-date { width: 38px; text-align: center; flex-shrink: 0; }

.res-cal-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--accent-gold);
  line-height: 1;
}

.res-cal-month {
  font-size: 9px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.res-cal-bar {
  width: 1px;
  height: 36px;
  background: rgba(200, 175, 120, 0.18);
  flex-shrink: 0;
}

.res-cal-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.res-cal-loc { font-size: 10px; color: var(--text-faint); }

/* ============================================================
   TRAVAUX
   ============================================================ */
.res-work-list { display: flex; flex-direction: column; gap: 0.7rem; }

.res-work-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.res-status-badge {
  font-size: 9px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.res-status-ongoing { background: rgba(220, 100, 60, 0.15);  color: var(--accent-orange); }
.res-status-planned { background: rgba(59, 130, 220, 0.12);  color: var(--accent-blue); }
.res-status-done    { background: rgba(52, 168, 120, 0.10);  color: var(--accent-green); }

.res-work-desc {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

.res-work-period {
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .res-topbar { padding: 0.6rem 1rem; }
  .res-wrapper { padding: 0 1rem 3rem; }
  .res-docs-grid,
  .res-info-grid { grid-template-columns: 1fr; }
  .res-hero h1 { font-size: 2rem; }
}
