/* ═══════════════════════════════════════════
   SHARED STYLES — AMISdesSENIORS
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --bleu: #1a3a5c;
  --bleu-clair: #2e6da4;
  --bleu-pale: #eef4fb;
  --or: #c8922a;
  --or-clair: #f0c060;
  --or-pale: #fdf5e6;
  --creme: #faf7f2;
  --gris-doux: #f0ebe3;
  --texte: #2a2a2a;
  --texte-clair: #5a5a5a;
  --vert: #2e7d32;
  --vert-pale: #e8f5e9;
  --rouge: #c62828;
  --rouge-pale: #fdecea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--creme);
  color: var(--texte);
  font-size: 17px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--bleu);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; color: white; padding: 16px 0; letter-spacing: 1px; text-decoration: none; display: block; }
.logo span { color: var(--or-clair); }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--or-clair); }
.nav-sos {
  background: var(--rouge) !important;
  color: white !important;
  font-weight: 700 !important;
  animation: sos-pulse 3s infinite;
}
.nav-sos:hover { background: #b71c1c !important; }
@keyframes sos-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(198,40,40,0.4)} 50%{box-shadow:0 0 0 6px rgba(198,40,40,0)} }
.nav-cta {
  background: var(--or) !important;
  color: white !important;
  padding: 7px 14px !important;
  border-radius: 4px !important;
}
.nav-cta:hover { background: var(--or-clair) !important; color: var(--bleu) !important; }

/* ── HERO GÉNÉRIQUE ── */
.page-hero {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  color: white;
  padding: 64px 40px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--or-clair); margin-bottom: 14px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 14px; }
.page-hero .subtitle { font-size: 1.05rem; opacity: 0.85; font-weight: 300; max-width: 580px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a { color: var(--or-clair); text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: 1060px; margin: 0 auto; }
.page-body { max-width: 1060px; margin: 0 auto; padding: 48px 40px; }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ── SECTIONS ── */
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--or); margin-bottom: 10px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--bleu); line-height: 1.25; margin-bottom: 16px; }
.section-intro { font-size: 1rem; color: var(--texte-clair); max-width: 660px; margin-bottom: 32px; line-height: 1.8; }

/* ── BOUTONS ── */
.btn-primary { background: var(--or); color: white; padding: 13px 28px; border-radius: 6px; font-size: 0.97rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--or-clair); color: var(--bleu); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--bleu); border: 2px solid var(--bleu); padding: 11px 24px; border-radius: 6px; font-size: 0.97rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--gris-doux); }
.btn-secondary:hover { border-color: var(--bleu); color: var(--bleu); }
.btn-danger { background: var(--rouge); color: white; padding: 13px 28px; border-radius: 6px; font-size: 0.97rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-danger:hover { background: #b71c1c; transform: translateY(-1px); }

/* ── CARDS ── */
.card { background: white; border-radius: 14px; border: 1px solid var(--gris-doux); padding: 24px; transition: all 0.2s; }
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.07); transform: translateY(-2px); }

/* ── WIDGET SIDEBAR ── */
.widget { background: white; border-radius: 14px; padding: 22px; border: 1px solid var(--gris-doux); margin-bottom: 20px; }
.widget-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--bleu); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--gris-doux); }
.widget-sos { background: var(--rouge); border: none; color: white; }
.widget-sos .widget-title { color: white; border-bottom-color: rgba(255,255,255,0.2); }

/* ── FORMULAIRES ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--bleu); margin-bottom: 7px; }
.form-group label .req { color: var(--or); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--gris-doux);
  border-radius: 8px;
  font-family: inherit; font-size: 0.97rem;
  color: var(--texte); background: var(--creme);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--bleu-clair);
  box-shadow: 0 0 0 3px rgba(46,109,164,0.1);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; }
.badge-green { background: var(--vert-pale); color: var(--vert); }
.badge-blue { background: var(--bleu-pale); color: var(--bleu); }
.badge-gold { background: var(--or-pale); color: var(--or); }
.badge-red { background: var(--rouge-pale); color: var(--rouge); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,25,45,0.75); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 40px 100px rgba(0,0,0,0.3); transform: translateY(24px); transition: transform 0.3s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { background: linear-gradient(135deg, var(--bleu), var(--bleu-clair)); padding: 30px 36px 22px; color: white; position: relative; }
.modal-head.danger { background: linear-gradient(135deg, var(--rouge), #e53935); }
.modal-head h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; }
.modal-head p { opacity: 0.8; font-size: 0.92rem; margin-top: 5px; }
.modal-close { position: absolute; top: 14px; right: 18px; background: rgba(255,255,255,0.18); border: none; color: white; font-size: 1.1rem; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.modal-close:hover { background: rgba(255,255,255,0.3); }
.modal-body { padding: 28px 36px 32px; }
.modal-footer-btns { display: flex; justify-content: flex-end; gap: 12px; padding: 0 36px 28px; }

/* ── STARS ── */
.stars { color: var(--or-clair); letter-spacing: 2px; }
.stars.sm { font-size: 0.9rem; }

/* ── TAGS ── */
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; background: var(--gris-doux); color: var(--texte-clair); cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.tag:hover, .tag.active { background: var(--bleu); color: white; }

/* ── FOOTER ── */
footer { background: var(--bleu); color: rgba(255,255,255,0.6); padding: 36px 40px; font-size: 0.88rem; margin-top: 0; }
.footer-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 6px; }
.footer-logo span { color: var(--or-clair); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--or-clair); }

/* ── SEARCH BAR ── */
.search-bar { display: flex; gap: 0; background: white; border-radius: 10px; border: 2px solid var(--gris-doux); overflow: hidden; transition: border-color 0.2s; }
.search-bar:focus-within { border-color: var(--bleu-clair); }
.search-bar input { flex: 1; border: none; padding: 13px 18px; font-family: inherit; font-size: 1rem; background: transparent; outline: none; color: var(--texte); }
.search-bar button { background: var(--bleu); color: white; border: none; padding: 13px 22px; font-family: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.search-bar button:hover { background: var(--bleu-clair); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--texte-clair); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 1rem; }

/* ── SUCCESS MSG ── */
.success-block { background: var(--vert-pale); border: 2px solid #a5d6a7; border-radius: 12px; padding: 24px; text-align: center; display: none; }
.success-block.show { display: block; }
.success-block .sb-icon { font-size: 2.5rem; margin-bottom: 10px; }
.success-block h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--vert); margin-bottom: 6px; }
.success-block p { font-size: 0.92rem; color: #388e3c; }

/* ── BURGER BUTTON ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  z-index: 201;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  nav { padding: 0 16px; flex-wrap: nowrap; position: relative; }
  .burger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--bleu);
    padding: 72px 24px 32px;
    gap: 4px;
    z-index: 199;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--or);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-radius: 8px;
    display: block;
    color: rgba(255,255,255,0.9) !important;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.1); }
  .nav-cta { text-align: center; margin-top: 8px; padding: 14px 16px !important; }
  .nav-sos { text-align: center; }

  .page-hero { padding: 48px 20px 40px; }
  .page-body { padding: 28px 16px; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
