/* MémoireFidèle - CSS Principal */

/* Thèmes */
:root, [data-theme=""] {
  --primary: #2C2C2C;
  --primary-light: #444444;
  --accent: #C9A84C;
  --bg: #F8F6F2;
  --text: #333333;
  --card-bg: #FFFFFF;
  --border: #E0D9CE;
}
[data-theme="nature"] {
  --primary: #4A6741;
  --primary-light: #5C7D53;
  --accent: #D4B896;
  --bg: #F5F2EC;
  --text: #333333;
  --card-bg: #FFFFFF;
  --border: #D4C9B8;
}
[data-theme="marin"] {
  --primary: #1B2A4A;
  --primary-light: #2C3E6B;
  --accent: #A8B4C0;
  --bg: #F0F3F7;
  --text: #222222;
  --card-bg: #FFFFFF;
  --border: #C8D0DC;
}
[data-theme="bordeaux"] {
  --primary: #5C1F2E;
  --primary-light: #7A2B3D;
  --accent: #D4956A;
  --bg: #F8F3EF;
  --text: #333333;
  --card-bg: #FFFFFF;
  --border: #E0CFC4;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Georgia, serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }

/* Header */
header { background: var(--primary); padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 24px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.logo span { color: #fff; }
nav { display: flex; gap: 28px; }
nav a { color: rgba(255,255,255,.85); font-size: 15px; transition: color .2s; }
nav a:hover, nav a.active { color: var(--accent); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary { background: var(--accent); color: var(--primary); padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: opacity .2s; }
.btn-primary:hover { opacity: .85; }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; background: transparent; cursor: pointer; transition: all .2s; }
.btn-outline:hover { background: var(--accent); color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 80px 24px; text-align: center; position: relative; overflow: hidden; }
.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' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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"); }
.hero h1 { font-size: 44px; color: #fff; margin-bottom: 16px; position: relative; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 36px; position: relative; line-height: 1.7; }
.hero-search { max-width: 600px; margin: 0 auto; position: relative; }
.hero-search input { width: 100%; padding: 18px 24px; border-radius: 50px; border: none; font-size: 16px; outline: none; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.hero-search button { position: absolute; right: 6px; top: 6px; padding: 12px 28px; background: var(--accent); color: var(--primary); border: none; border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 15px; }

/* Cards */
.card { background: var(--card-bg); border-radius: 12px; padding: 24px; border: 1px solid var(--border); transition: all .25s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: #888; margin-bottom: 40px; }

/* Prestations */
.prestations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.prestation-card { background: var(--card-bg); border-radius: 16px; padding: 28px; border: 2px solid var(--border); text-align: center; transition: all .25s; cursor: pointer; }
.prestation-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.prestation-icon { width: 64px; height: 64px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; color: var(--accent); }
.prestation-price { font-size: 28px; font-weight: 800; color: var(--accent); margin: 12px 0 4px; }
.prestation-name { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.prestation-desc { font-size: 14px; color: #888; line-height: 1.6; }

/* Footer */
footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--accent); font-size: 16px; margin-bottom: 16px; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* Thème switcher */
.theme-switcher { display: flex; gap: 8px; align-items: center; }
.theme-dot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.theme-dot:hover, .theme-dot.active { border-color: #fff; transform: scale(1.2); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s; font-family: inherit; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Alerts */
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px; padding: 12px 16px; color: #2e7d32; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fff0f0; border: 1px solid #ffcccc; border-radius: 8px; padding: 12px 16px; color: #c0392b; font-size: 14px; margin-bottom: 16px; }

/* Responsive */
@media(max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hamburger { display: flex !important; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex !important; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--primary); padding: 16px; gap: 12px; z-index: 999; border-top: 2px solid var(--accent); }
  .mobile-menu a { color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 16px; text-decoration: none; border: 1px solid rgba(255,255,255,.2); text-align: center; }
}
