/*
Theme Name: Avent familial
Theme URI: https://example.com/
Author: OpenAI
Description: Thème WordPress chaleureux et festif conçu pour le plugin Calendrier de l’Avent familial.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: avent-familial
*/
:root {
  --af-green: #214b38;
  --af-green-deep: #173829;
  --af-red: #8d2930;
  --af-red-deep: #672027;
  --af-gold: #c9a65a;
  --af-gold-light: #ead9a6;
  --af-cream: #fbf7ec;
  --af-paper: #fffdf7;
  --af-ink: #26372d;
  --af-muted: #68766b;
  --af-line: rgba(36, 67, 48, .12);
  --af-shadow: 0 18px 55px rgba(27, 52, 36, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--af-ink);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(201,166,90,.13), transparent 28rem),
    radial-gradient(ellipse at 92% 18%, rgba(33,75,56,.08), transparent 30rem),
    var(--af-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--af-green); }
.af-site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(201,166,90,.35);
  background: rgba(251,247,236,.92);
  backdrop-filter: blur(12px);
}
.af-header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.af-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--af-green-deep); }
.af-brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--af-gold); border-radius: 50%;
  background: #fffaf0; font-size: 21px;
}
.af-brand-name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.af-brand-sub { display: block; margin-top: 3px; color: var(--af-muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.af-nav { display: flex; align-items: center; gap: 26px; }
.af-nav a { color: var(--af-green); text-decoration: none; font-size: 13px; font-weight: 650; }
.af-nav a:hover { color: var(--af-red); }
.af-main { overflow: hidden; min-height: 70vh; }
.af-hero {
  position: relative;
  padding: clamp(52px, 8vw, 94px) 20px 38px;
  text-align: center;
}
.af-hero:before, .af-hero:after { content: "✦"; position: absolute; color: var(--af-gold); opacity: .65; font-size: 22px; }
.af-hero:before { top: 28%; left: max(7%, calc((100% - 1040px)/2)); }
.af-hero:after { right: max(8%, calc((100% - 1040px)/2)); bottom: 23%; font-size: 16px; }
.af-eyebrow { margin: 0 0 13px; color: var(--af-red); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.af-hero h1 {
  max-width: 820px; margin: 0 auto 15px; color: var(--af-green-deep);
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 6vw, 64px);
  font-weight: 500; line-height: 1.08; letter-spacing: -.035em;
}
.af-hero h1 em { color: var(--af-red); font-weight: 500; }
.af-hero-copy { max-width: 590px; margin: 0 auto; color: var(--af-muted); font-size: clamp(15px, 2vw, 17px); }
.af-divider { display: flex; align-items: center; justify-content: center; gap: 13px; width: min(260px, 70%); margin: 27px auto 0; color: var(--af-gold); }
.af-divider:before, .af-divider:after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--af-gold)); }
.af-divider:after { transform: scaleX(-1); }
.af-calendar-section { width: min(1000px, calc(100% - 32px)); margin: 0 auto 76px; }
.af-calendar-frame { padding: clamp(12px, 3vw, 28px); border: 1px solid rgba(201,166,90,.5); border-radius: 28px; background: rgba(255,253,247,.7); box-shadow: var(--af-shadow); }
.af-calendar-frame:before { content: ""; display: block; width: 74px; height: 3px; margin: 0 auto 18px; border-radius: 3px; background: var(--af-gold); }
.af-site-footer { padding: 28px 20px 34px; border-top: 1px solid rgba(201,166,90,.35); text-align: center; color: var(--af-muted); font-size: 12px; }
.af-footer-flourish { margin-bottom: 7px; color: var(--af-gold); font-size: 17px; letter-spacing: .45em; }
.af-page-content { width: min(900px, calc(100% - 36px)); margin: 54px auto 80px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--af-line); border-radius: 22px; background: var(--af-paper); box-shadow: var(--af-shadow); }
.af-page-content h1, .af-page-content h2, .af-page-content h3 { color: var(--af-green-deep); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.af-page-content h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; }
.af-page-content h2 { font-size: 29px; }
.af-page-content img { max-width: 100%; height: auto; border-radius: 12px; }
.af-page-content input, .af-page-content textarea, .af-page-content select { max-width: 100%; }

/* Harmonisation du calendrier fourni par le plugin */
body .caf-wrap {
  max-width: 940px !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 30px) !important;
  color: var(--af-ink) !important;
  background: linear-gradient(145deg, #fbf5e7, #edf1e8) !important;
  border: 1px solid rgba(201,166,90,.48) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}
body .caf-head { margin-bottom: 25px !important; }
body .caf-head h2 { color: var(--af-green) !important; font-family: Georgia, "Times New Roman", serif !important; font-weight: 500 !important; letter-spacing: -.02em !important; }
body .caf-head p, body .caf-note { color: #647267 !important; }
body .caf-grid { gap: 11px !important; }
body .caf-door {
  min-height: 88px !important; border: 1px solid var(--af-gold) !important;
  border-radius: 12px !important; color: #fffaf0 !important;
  background: linear-gradient(145deg, #9b3037, var(--af-red-deep)) !important;
  box-shadow: 0 4px 0 #572027, 0 7px 13px rgba(80,25,30,.12) !important;
  font-family: Georgia, "Times New Roman", serif !important; font-size: 27px !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
body .caf-door:hover:not(:disabled) { transform: translateY(-3px) !important; filter: brightness(1.08) !important; }
body .caf-door:focus-visible { outline: 3px solid var(--af-green) !important; outline-offset: 4px !important; }
body .caf-door:disabled { opacity: .48 !important; }
body .caf-door.opened { color: #3f3218 !important; background: linear-gradient(145deg, #f0d995, #c49a49) !important; box-shadow: 0 4px 0 #94702e !important; }
body .caf-result { border: 1px solid var(--af-gold) !important; border-radius: 16px !important; background: var(--af-paper) !important; box-shadow: 0 10px 28px rgba(27,52,36,.08) !important; }
body .caf-result h3 { color: var(--af-red) !important; font-family: Georgia, "Times New Roman", serif !important; font-weight: 500 !important; }
body .caf-person { color: var(--af-green) !important; }
body .caf-activity { color: var(--af-ink) !important; }
@media (max-width: 640px) {
  .af-header-inner { min-height: 66px; width: calc(100% - 28px); }
  .af-nav { gap: 14px; }
  .af-nav a { font-size: 12px; }
  .af-brand-name { font-size: 17px; }
  .af-brand-sub { font-size: 9px; }
  .af-hero { padding-top: 54px; }
  .af-hero:before { left: 6%; top: 18%; }
  .af-hero:after { right: 7%; bottom: 16%; }
  body .caf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 9px !important; }
  body .caf-door { min-height: 70px !important; font-size: 23px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition-duration: .01ms !important; } }
